You are not logged in.

#1 2015-06-04 04:24:00

Renard
Member
Registered: 2015-04-20
Posts: 3

Audio issues - Pulseaudio + Java

Hello!

I'm a Arch newcomer and still trying to figure my way around things. Most issues I had where pretty easy to solve or workaround (thanks to the documentation), but I'm stuck with a particular one - making a specific java-based application work nice with the audio stack.

The piece of software in question is "YASS", a lyrics editor for karaoke games.
Project site: http://yass-along.com/ (current version: 1.6)

So far, I've tried quite a few things, including:
- other Java versions (both OpenJDK6 to 8, Java 8 from Oracle)
- padsp and pasuspender (the latter one can't get around the "-jar" argument for reasons I ignore)
- installing the Windows version of YASS (doesn't run)
- running a Ubuntu VM for that (sound works okay but there's way to much audio lag for that to be remotely useful)

I've tried a few other Java-based applications and found out that:
- the JavaSoundDemo from Oracle fails
- Minecraft works as expected

Here's my current setup:

$ pulseaudio --version
pulseaudio 6.0
$ archlinux-java status
Available Java environments:
  java-8-jdk (default)
  java-8-openjdk/jre
$ java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

YASS error log:

javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, big-endian not supported.
	at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:513)
	at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:121)
	at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:153)
	at yass.YassSynth.openWavLine(YassSynth.java:194)
	at yass.YassPlayer$PlayThread.playMP3(YassPlayer.java:1233)
	at yass.YassPlayer$PlayThread.run(YassPlayer.java:1116)

Could anyone help my out? Thanks!

Last edited by Renard (2015-06-04 04:25:19)

Offline

Board footer

Powered by FluxBB