← Back to team overview

openjdk team mailing list archive

Re: [Bug 491784] Re: Sound does not work with openjdk

 

As you can see in this part, java do not have problems to access pulse:
index: 99
	driver: <protocol-native.c>
	flags: START_CORKED 
	state: CORKED
	sink: 0 <alsa_output.pci-0000_00_1b.0.analog-stereo>
	volume: 0: 100%
	        0: 0.00 dB
	        balance 0.00
	muted: no
	current latency: 0.00 ms
	requested latency: 113.38 ms
	sample spec: s16le 1ch 11025Hz
	channel map: mono
	             Mono
	resample method: speex-float-1
	module: 8
	client: 87 <Java>
	properties:
		media.name = "Audio Stream"
		application.name = "Java"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "16"
		application.process.id = "26076"
		application.process.user = "ant1"
		application.process.host = "ants"
		application.process.binary = "java"
		window.x11.display = ":0.0"
		application.language = "en_US.UTF-8"
		application.process.machine_id = "0b5a826cfe1ab9dd2bb7c9444a89694a"
		application.process.session_id = "0b5a826cfe1ab9dd2bb7c9444a89694a-1262064218.846503-57789871"
		module-stream-restore.id = "sink-input-by-application-name:Java"

Do you have any problems with  mplayer? i so it in your list.
Is it possible that your java application some how hardwired with alsa?
The problem is, if you set java to use alsa, it will still use pulse
with alsa2pulse plugin, which has problems too.

-- 
Sound does not work with openjdk
https://bugs.launchpad.net/bugs/491784
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “openjdk-6” package in Ubuntu: New

Bug description:
I am using a java software (zekr) that has audio playback feature. This feature works with sun-java6-jre, but not with openjdk-6-jre, instead I get this error:

java.lang.IllegalArgumentException: Master Gain not supported
	org.classpath.icedtea.pulseaudio.PulseAudioLine.getControl(PulseAudioLine.java:89)
	org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine.getControl(PulseAudioSourceDataLine.java:51)
	javazoom.jlgui.basicplayer.BasicPlayer.openLine(Unknown Source)
	javazoom.jlgui.basicplayer.BasicPlayer.initLine(Unknown Source)
	javazoom.jlgui.basicplayer.BasicPlayer.startPlayback(Unknown Source)
	javazoom.jlgui.basicplayer.BasicPlayer.play(Unknown Source)
	net.sf.zekr.engine.audio.DefaultPlayerController.play(DefaultPlayerController.java:83)
	net.sf.zekr.ui.AudioPlayerUiController.playerTogglePlayPause(AudioPlayerUiController.java:163)
	net.sf.zekr.engine.audio.ui.AudioPlayerForm$5.widgetSelected(AudioPlayerForm.java:325)
	org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
	org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
	org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
	org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
	net.sf.zekr.ui.BaseForm.loopEver(BaseForm.java:36)
	net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:63)
	net.sf.zekr.ZekrMain.main(ZekrMain.java:88)

ProblemType: Bug
Architecture: i386
Date: Thu Dec  3 10:28:38 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: wl
Package: openjdk-6-jre 6b16-1.6.1-3ubuntu1
ProcEnviron:
 LANGUAGE=en_US:en_GB:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
SourcePackage: openjdk-6
Uname: Linux 2.6.31-15-generic i686





Follow ups

References