WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Advice on sound options for Sun Java 6  (Read 2355 times)

Offline timc

  • Newbie
  • *
  • Posts: 4
Advice on sound options for Sun Java 6
« on: January 04, 2010, 06: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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14545
Re: Advice on sound options for Sun Java 6
« Reply #1 on: January 04, 2010, 06:50:09 AM »
I think either a) or b) would be viable options

Offline ^thehatsrule^

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
Re: Advice on sound options for Sun Java 6
« Reply #2 on: January 04, 2010, 03:24:43 PM »
FYI, the base uses udev 116 (see .../archive/src)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Advice on sound options for Sun Java 6
« Reply #3 on: January 08, 2010, 12: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")
The only barriers that can stop you are the ones you create yourself.

Offline timc

  • Newbie
  • *
  • Posts: 4
Re: Advice on sound options for Sun Java 6
« Reply #4 on: January 09, 2010, 05: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  :)

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Advice on sound options for Sun Java 6
« Reply #5 on: January 09, 2010, 05: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.