LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Java not respecting ALSA or Phonon audio settings (http://www.linuxquestions.org/questions/linux-desktop-74/java-not-respecting-alsa-or-phonon-audio-settings-4175458014/)

TheStarLion 04-13-2013 12:35 PM

Java not respecting ALSA or Phonon audio settings
 
Bit of a problem. On a KDE4 session running on Debian Wheezy, I've managed to get almost everything routing audio to the USB headset I'm using thanks to gstreamer-properties and Phonon itself handing it.

However, Java is ignoring both of them.
gstreamer-properties is directing all ALSA traffic to the headset using ALSA, and phonon (using the phonon-gstreamer backend) is doing the same.

Without using Pulseaudio, which I don't want to have to resort, I can't seem to find any way to tell Java where it's supposed to send its audio.

This appears to be affecting Flash also, and happens the same regardless of whether either are being run in a browser or standalone.

gradinaruvasile 04-14-2013 05:54 AM

You need to route EVERYTHHING through one method.
Best is to route ALSA through PulseAudio (this works well). Dont forget the alsa-oss package for non-ALSA applications (such as Java).
Then i suppose Gstreamer and Phonom can use PulseAudio as backend.

TheStarLion 04-14-2013 08:29 AM

I didn't really want to resort to PulseAudio, but I've just done that along with the alsa-oss package. In-browser stuff now all uses the USB headset fine, but Java is still ignoring everything and outputting directly to the speakers instead.
Phonon is still directing to gstreamer, which is in turn now set to use Pulseaudio and the USB headset device, and everything else is doing just that - except for Java.

Edit: I figured it out thanks to the Archlinux Wiki right here: https://wiki.archlinux.org/index.php...ith_Pulseaudio

jACK-ah 04-17-2013 11:42 PM

JAVA not gona support both of them


All times are GMT -5. The time now is 04:12 PM.