Sound doesn't work under ALSA without aoss

Bug #415157 reported by Reuben Thomas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

When I try to use a Java program that uses sound (I tried with "processing" from processing.org), Java complains that the sound device cannot be opened:

==== JavaSound Minim Error ====
==== Couldn't open the line: Audio Device Unavailable

This error seems to be a generic Java error, not specific to "processing".

I am using ALSA for sound (i.e. I don't have PulseAudio running), and everything else (mpd, Sonata, Flash, sox, mplayer, vlc, xine &c.) seems to work fine. If I run processing with "aoss processing" then it works fine, but as far as I can see it should work either with ALSA or with PulseAudio.

I have the same problem if I use sun-java6 rather than openjdk.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: openjdk-6-jre 6b14-1.4.1-0ubuntu11
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: openjdk-6
Uname: Linux 2.6.28-14-generic i686

Revision history for this message
Reuben Thomas (rrt) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

please could you recheck this in karmic, and/or with the packages from
https://edge.launchpad.net/~openjdk/+archive/ppa?field.series_filter=jaunty

Changed in openjdk-6 (Ubuntu):
status: New → Incomplete
Revision history for this message
Reuben Thomas (rrt) wrote : Re: [Bug 415157] Re: Sound doesn't work under ALSA without aoss

2009/9/30 Matthias Klose <email address hidden>:
> please could you recheck this in karmic, and/or with the packages from
> https://edge.launchpad.net/~openjdk/+archive/ppa?field.series_filter=jaunty

I now use PulseAudio, with which I don't have this problem. Is there
some way I can temporarily disable PulseAudio to check? I'd rather not
remove PA from my system, as it took some effort to make it work!

--
http://rrt.sc3d.org
L’art des vers est de transformer en beautés les faiblesses (Aragon)

Revision history for this message
Matthias Klose (doko) wrote :

rechecked that this works with pulseaudio in lucid. I'll close this report after the lucid release. pulseaudio is now used by default on the desktop

Revision history for this message
Gerrit Niezen (gerrit-niezen) wrote :

I have this problem on lucid with sun-java6. No problem with openjdk, but it seems that the controlP5 library that is a Processing extension will only work correctly with sun-java6.

Revision history for this message
Gerrit Niezen (gerrit-niezen) wrote :

OK, this bug seems related: https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/457144

So the options are to either to copy libpulse-java.so and pulse-java.jar from openjdk to sun-java6, or use openjdk.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openjdk-6 (Ubuntu) because there has been no activity for 60 days.]

Changed in openjdk-6 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.