← Back to team overview

openjdk team mailing list archive

[Bug 407299] [NEW] openjdk should use pulseaudio by default

 

Public bug reported:

openjdk-6-jre-headless use alsa by default. This brake things on karmic where pulseaudio is default sound system (choppy sound and more). The fix is simple:
edit /etc/java-6-openjdk/sound.properties and change 

javax.sound.sampled.Clip=com.sun.media.sound.DirectAudioDeviceProvider
javax.sound.sampled.Port=com.sun.media.sound.PortMixerProvider
javax.sound.sampled.SourceDataLine=com.sun.media.sound.DirectAudioDeviceProvider
javax.sound.sampled.TargetDataLine=com.sun.media.sound.DirectAudioDeviceProvider

to

javax.sound.sampled.Clip=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.Port=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.SourceDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.TargetDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider


To reproduce try to use josm (javaopenstreetmap)  and load some sound file... this will brake sound if you press pause and play again. After this fix, every thing working fine.


lsb_release -rd
Description:	Ubuntu karmic (development branch)
Release:	9.10

apt-cache policy openjdk-6-jre-headless
openjdk-6-jre-headless:
  Installiert: 6b16~pre4-0ubuntu7
  Kandidat: 6b16~pre4-0ubuntu7
  Versions-Tabelle:
 *** 6b16~pre4-0ubuntu7 0
        500 http://de.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

** Affects: openjdk-6 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
openjdk should use pulseaudio by default
https://bugs.launchpad.net/bugs/407299
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:
openjdk-6-jre-headless use alsa by default. This brake things on karmic where pulseaudio is default sound system (choppy sound and more). The fix is simple:
edit /etc/java-6-openjdk/sound.properties and change 

javax.sound.sampled.Clip=com.sun.media.sound.DirectAudioDeviceProvider
javax.sound.sampled.Port=com.sun.media.sound.PortMixerProvider
javax.sound.sampled.SourceDataLine=com.sun.media.sound.DirectAudioDeviceProvider
javax.sound.sampled.TargetDataLine=com.sun.media.sound.DirectAudioDeviceProvider

to

javax.sound.sampled.Clip=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.Port=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.SourceDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.TargetDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider


To reproduce try to use josm (javaopenstreetmap)  and load some sound file... this will brake sound if you press pause and play again. After this fix, every thing working fine.


lsb_release -rd
Description:	Ubuntu karmic (development branch)
Release:	9.10

apt-cache policy openjdk-6-jre-headless
openjdk-6-jre-headless:
  Installiert: 6b16~pre4-0ubuntu7
  Kandidat: 6b16~pre4-0ubuntu7
  Versions-Tabelle:
 *** 6b16~pre4-0ubuntu7 0
        500 http://de.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status



Follow ups

References