The time now is Fri 24 May 2013, 02:25
All times are UTC - 4 |
| Author |
Message |
soundman
Joined: 16 Dec 2009 Posts: 1
|
Posted: Wed 16 Dec 2009, 07:08 Post subject:
How to force Java Sound to use ALSA not OSS? |
|
Hi All, my first post here so keeping my fingers crossed.
Normally I can find everything I need thru Google, but now I need help from the experts! I have a Java Sound application running under Puppy 4.0 (and JRE1.6.0_07), but now I want to implement 5.1 surround sound. I've configured my .asoundrc file so that part is all working well.
Here's the issue - Java always uses /dev/dsp as the driver. I've read in a few other linux distro forums that all you need to do is uninstall OSS to force Java to use ALSA /dev/snd/ drivers, but nobody says how this is done. It is not listed in PETget so I assume it's part of the core kernel, and I'm not at the level of building my own Puppy.
Is there any easy way this can be done?
TIA.
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6180 Location: Auckland, New Zealand
|
Posted: Wed 16 Dec 2009, 14:42 Post subject:
|
|
I don't think Puppy includes oss - it just has Alsa's "oss emulation". Maybe you can configure it to disable that, but if Java really uses oss unless it is not present, then I'd say it is a stupid program Surely it can be configured to use Alsa...
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
Patriot

Joined: 15 Jan 2009 Posts: 734
|
Posted: Wed 16 Dec 2009, 16:42 Post subject:
|
|
Hmmm .....
disciple is correct ... puppy only have alsa installed with oss-emulation layer ... To try removing the oss emulation layer, you'll need to unload the modules ... all that has snd_seq*, snd_*_oss and snd_pcm ... example:
#lsmod | grep -e '_oss|_seq'
#rmmod [one module name]
Frankly, I'm not a fan of Java and I have no idea how Java can bork like this ... a little googling does seem to indicate a problematic library ...
Rgds
|
|
Back to top
|
|
 |
WB7ODYFred

Joined: 13 Dec 2008 Posts: 90 Location: Oregon & Washington
|
Posted: Sat 13 Feb 2010, 20:26 Post subject:
Recreate /dev/dsp Subject description: Getting USB Headset Audio to work again |
|
mknod /dev/dsp 14 3
mknod /dev/dsp1 14 19
mknod /dev/dsp2 14 35
mknod /dev/dsp3 14 51
chmod 777 /dev/dsp*
if needed mknod /dev/mixer 14 0
chmod 777 /dev/mixer
Fora USB Headset audio setup
rmmod snd-usb-audio
modprobe snd-usb-audio
Then try to play audio using the alsaplayer or vlc or gzine
vi /etc/modprobe.conf
# --- ALSACONF version 1.0.22 ---
alias snd-card-0 snd-usb-audio
alias sound-slot-0 snd-usb-audio
alias snd-card-1 snd-es1938
alias sound-slot-1 snd-es1938
/etc/rc.d/rc.alsa status
/etc/rc.d/rc.alsa stop
/etc/rc.d/rc.alsa start
/etc/rc.d/rc.alsa status
I have an ess esonic sound chip es1938 in my PC an plugged in a USB Headset for my audio use
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
[ Time: 0.0404s ][ Queries: 12 (0.0054s) ][ GZIP on ] |