You are not logged in.
Hi, I've been having problems with my sound congfiguration. I am trying to play mp3 songs through vlc or gmusicbrowser, and both are experiencing problems. My sound is working, because I am able to hear sound from Firefox. However when I try to play a mp3 on gmusicbrowser I recieve an error message that says
Playing error : Configured audiosink sink0 is not working. at /usr/bin/../share/gmusicbrowser/gmusicbrowser_gstreamer-0.10.pm line 137.
.
VLC will play the same Mp3, but it will not produce sound despite ALSA being set as the audio output for vlc. I have gstreamer installed and lame. Maybe Gstreamer or ALSA is not configured properly? I've been searching all day and haven't been able to find a solution.
I noticed that the speaker-test will not work either
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -2,No such file or directory
Thanks in advanced to anyone that is able to help
Solution was found on a page for Runescape's Linux Known Issues http://services.runescape.com/m=rswiki/ … own_Issues
Last edited by Disco Dave (2015-01-03 05:49:28)
Offline
What have you tried to do to fix this so far? Have you searched the forums here? I seem to recall a thread or two on the "No such file or directory" problem that may help you out.
Matt
"It is very difficult to educate the educated."
Offline
I was able to fix the playing of the Mp3s in gmusicbrowser and vlc by installing pulseaudio. And I have searched quite a bit on the threads that mention "No such file or directory" and I am unable to find anything that helped my problem. I noticed I can run speaker-test and aplay if i specify hw0.0 as my device. Does this mean my default device is not set properly?
I am also having trouble getting Java to use pulseaudio, is there a config file I need to edit to get java to use pulseaudio?
Offline
Java doesn't have direct pulseaudio support, you can however install pulseaudio-alsa and the alsa-plugins in order to have a configuration file which sets ALSA programs to use the pulseaudio plugin.
Last edited by V1del (2017-12-21 17:43:18)
Offline
Hey thanks a lot! I have pulseaudio-alsa and alsa-plugins installed, however my Java application is still not using pulseaudio. Speaker-test works properly now.
[disco@discolap ~]$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=Generic
HD-Audio Generic, ALC3227 Analog
Default Audio Device
front:CARD=Generic,DEV=0
HD-Audio Generic, ALC3227 Analog
Front speakers
surround21:CARD=Generic,DEV=0
HD-Audio Generic, ALC3227 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
HD-Audio Generic, ALC3227 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
HD-Audio Generic, ALC3227 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
HD-Audio Generic, ALC3227 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
HD-Audio Generic, ALC3227 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
HD-Audio Generic, ALC3227 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=HDMI,DEV=0
HDA ATI HDMI, HDMI 0
HDMI Audio Output
[disco@discolap ~]$ pacman -Qs alsa
local/alsa-lib 1.0.28-1
An alternative implementation of Linux sound support
local/alsa-plugins 1.0.28-2
Extra alsa plugins
local/alsa-utils 1.0.28-1
An alternative implementation of Linux sound support
local/apulse 0.1.5-1
PulseAudio emulation for ALSA
local/lib32-alsa-lib 1.0.28-1
An alternative implementation of Linux sound support (32 bit)
local/lib32-alsa-plugins 1.0.28-1
Extra alsa plugins (32-bit)
local/pulseaudio-alsa 2-3
ALSA Configuration for PulseAudio
local/zita-alsa-pcmi 0.2.0-2
The successor of clalsadrv, provides easy access to ALSA PCM devices.
And i added these two lines to the top of /etc/pulse/default.pa
2 load-module module-alsa-sink device=hw:0,0
3 set-default-sink 0
I am unable to get the Java application to use pulseaudio, by using a bash script to wrap java with padsp
#!/bin/bash
padsp /usr/lib/jvm/java-7-openjdk/jre/bin/java.bin "$@"
I also noticed that if Java is running, then other sound does not work (such as flash or gmusicbrowser).
Any thoughts? I believe if I was able to force java to pulseaudio it would fix my problem. I have the pulseaudio-alsa and alsa-plugins installed, so I'm unsure of why java won't use pulseaudio.
Last edited by Disco Dave (2015-01-03 03:56:46)
Offline
I am unable to locate libpulse-java.so or pulse-java.jar, that is mentioned here.
Offline
What are you exactly trying to run? Try with Java 8 from what I see it supports pulse now, the mail you posted is from ages ago it shouldn't be relevant anymore with neither java-7 nor java-8, also the alsa sink load shouldn't be necessary but if it doesn't break anything I don't think it harms anything. You shouldn't be using apulse if you are actually using pulseaudio now, so it may be beneficial to remove it
Last edited by V1del (2015-01-03 15:17:25)
Offline