← Back to team overview

openjdk team mailing list archive

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

 

As far as Zekr source code is concerned, I can bear witness that there
is not a single line of anything related to sound or alsa. We just use
basicplayer playback API: open(), play(), pause(), stop() and
setGain(float), which itself delegates to standard javax.media (JMF)
methods (for the case of mp3, it then finds mp3spi, which uses tritonus
and jlayer API).

question: does this problem also happens with .ogg, .mp3 and .spx files.
I want to know if this relates to jlayer API, or other libraries.

-- 
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