<div class="gmail_quote">Dear List members,<br><br>I have 2.6.25-14.fc9.i686; gnome.<br>aplay plays well, I hear through headphone.<br>When I run a Java applicaiton which uses sound system, it says<br>*** PULSEAUDIO: Unable to connect: Connection refused<br>
<br>AudioInput: TargetDataLine: com.sun.media.sound.DirectAudioDevice$DirectTDL@15 356d5<br>javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 22050.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.<br>
<br>Here are other informations, please help me troubleshoot,<br>alsa-tools-1.0.16-1.fc9.i386<br><br><div style="margin-left: 40px;">[root@system ~]# aplay -l<br>card 0: ICH5 [Intel ICH5], device 0: Intel ICH [Intel ICH5]<br>
Subdevices: 1/1<br> Subdevice #0: subdevice #0<br>card 0: ICH5 [Intel ICH5], device 4: Intel ICH - IEC958 [Intel ICH5 - IEC958]<br> Subdevices: 1/1<br> Subdevice #0: subdevice #0<br><br>grep pulseaudio /var/log/messages<br>
Apr 30 12:38:50 system pulseaudio[2551]: sink-input.c: Failed to create sink input: too many inputs per sink.<br><b>pulseaudio[2551]: module-alsa-sink.c: Error opening PCM device front:0: Device or resource busy</b><br><br>
<br>[root@system ~]# fuser -v /dev/snd/*<br> USER PID ACCESS COMMAND<br>/dev/snd/controlC0: root 2543 F.... pulseaudio<br> root 2656 F.... mixer_applet2<br>[root@system ~]# fuser -v /dev/dsp*<br>
[root@system modprobe.d]# ls /dev/snd/<br>controlC0 pcmC0D0c pcmC0D0p pcmC0D1c pcmC0D2c pcmC0D3c pcmC0D4p seq timer<br>[root@system modprobe.d]# lsof /dev/snd/controlC0 <br>COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME<br>
pulseaudi 2543 root 15u CHR 116,10 2902 /dev/snd/controlC0<br>pulseaudi 2543 root 21u CHR 116,10 2902 /dev/snd/controlC0<br>mixer_app 2656 root 20u CHR 116,10 2902 /dev/snd/controlC0<br><br>[user1@system modprobe.d]$ getfacl /dev/snd/*<br>
all the same<br># file: dev/snd/controlC0<br># owner: root<br># group: root<br>user::rw-<br>group::rw-<br>mask::rw-<br>other::---<br><br>pulseaudio -vvv<br>W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted<br>
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted<br><br>E: alsa-util.c: Error opening PCM device hw:0: No such file or directory<br>E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_8086_24d5_sound_card_0_alsa_playback_0"): initialization failed.<br>
</div><br>Thanks in advance,<br>saeedora</div><br>