Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: timc on January 04, 2010, 09:34:04 AM

Title: Advice on sound options for Sun Java 6
Post by: timc on January 04, 2010, 09:34:04 AM
Hi,

Sun Java 6 is able to use the sound under Tiny Core but takes exclusive control of the sound card - it does this on Ubuntu also.  However, on Ubuntu you can get around this with padsp which is part of Pulse Audio.  I have been trying to build PulseAudio for TC and it requires UDev libs and headers that are not supplied in TC or in any extension that I can find.  So I built the missing Udev components and PulseAudio at least builds.  However, it fails on startup saying that it does not have permission to set udev monitor mode ("Failed to enable monitor: Operation not permitted").  Further investigation suggests this is because Udev did not allow user space access to this feature until kernel 2.6.30.

I am hoping someone can suggest the best way forward from here.  Should I:

a) Get a newer kernel 2.6.30 or higher and risk a bunch of other compatibility problems
b) Get older versions of UDev and PulseAudio that must have solved this problem a different way
c) Find an alternative to using PulseAudio.

Thanks in anticipation!

Tim
Title: Re: Advice on sound options for Sun Java 6
Post by: Juanito on January 04, 2010, 09:50:09 AM
I think either a) or b) would be viable options
Title: Re: Advice on sound options for Sun Java 6
Post by: ^thehatsrule^ on January 04, 2010, 06:24:43 PM
FYI, the base uses udev 116 (see .../archive/src)
Title: Re: Advice on sound options for Sun Java 6
Post by: curaga on January 08, 2010, 03:45:04 PM
I assume you're using alsa?

c) find an alternative:

- either use OSS (OSS 4 has vmix, unlike the older OSS and alsa's OSS emulation), or start up your browser/java app with the aoss wrapper (alsa-oss.tcz, "aoss opera")
Title: Re: Advice on sound options for Sun Java 6
Post by: timc on January 09, 2010, 08:43:48 PM
Thanks.  Actually I finally figured out that starting the alsa package - /usr/local/etc/init.d/alsa start - makes all the difference  :)
Title: Re: Advice on sound options for Sun Java 6
Post by: Jason W on January 09, 2010, 08:56:23 PM
There is also the "alsaconf" command that works in cases where the /usr/local/etc/init.d/alsasound script does not.  My current machine requires alsaconf for some reason.