Forums » Linux

sound error оn linux, alsa-oss

Jul 18, 2003 zhuk link
Debian sarge, alsa drivers with oss emulation, vendetta gives error:

/dev/dsp: Input/output error

Other programs using oss work fine, i.e. when I do:

cat some_file > /dev/dsp
or
mplayer -ao oss some_movie
or
xmms with oss output plugin,

I heаr a beautiful sound.

If I do:
/etc/init.d/alsa stop
then
modprobe cs46xx (native oss driver),
sound in vendetta works without problems.

I can't use oss by default, since many other software work with alsa better. How can I make vendetta work with alsa oss emulation?
Jul 21, 2003 BusMasteR link
I don't know if this is actually true, but i've heard that it could have problems working with the alsa driver. Though it's nice with the ability to have (for an example) xmms running mp3's in the background - the native oss drivers often works better than emulated drivers as alsa. If one's soundcard actually support native mixing of multible sound channels there would be some /dev/dsp? devices for assigning different programs to output in. Vendetta - however - always takes /dev/dsp, which can't be changed.

EDIT: btw tried the alsa myself... i quickly turned around, running of with my hands in the air - screaming ;D
Jul 27, 2003 KingFido link
run alsa-oss emulation. its a module for alsa (oss emulation). should be pretty clear from the documentation how to use it, or you can let it configure itself.
Aug 02, 2003 zhuk link
The point of my message was: alsa oss emulation doesn't work with vendetta, though it works with other programs.

Is it a bug?

P.S. This was for KingFido
Sep 01, 2003 oninoshiko link
i use a (onboard) C-Media CMI8738 sound device (ONLY supported by ALSA) i used to use a SB-Live, but i find that the onboard sound on this board is accualy better (for what i paid for the board it better be (although i didnt buy it for the sound)) i have alsa-oss installed and running, and vendetta works fine with it, as long as NO other app tries to access the sound. if i have say XMMS running (through alsa-xmms plugin) i get that same error.

are you useing esd, aRts, or another app which uses the sound?


oninoshiko
Aug 02, 2003 roguelazer link
alsa-oss works better than plain oss here on sblive... do you actually know if that version of ALSA supports ur card?
Aug 06, 2003 zhuk link
2roguelazer
<<do you actually know if that version of ALSA supports ur card?>>

Yes, it does (snd-cs46xx module). snd-mixer-oss and snd-pcm-oss modules are loaded and working. Again, all other OSS progs work when I use alsa.

Do you actualy use vendetta with alsa-oss?
Aug 07, 2003 roguelazer link
Yep.
Aug 07, 2003 igrok link
Alsa works great for me, and I hear it is the native sound driver in the Linux Kernel 2.6 :)
Aug 08, 2003 BusMasteR link
As i said - i've both had myself and heard of ppl having problems with alsa and vendetta...
Sep 02, 2003 roguelazer link
Um. If you run arts/esd and run vendetta with this command:

esddsp vendetta
artsdsp vendetta

(depending on whether you run esd or arts)

then run the new program also with esddsp/artsdsp, you will have software emulation of hardware mixing and should get no error.
Sep 02, 2003 zhuk link
Right, if I launch artsd and run "artsdsp -m vendetta" I here sound, but it is a little slow and crappy.

No way alsa-oss alone works. I did not try it with new vendetta yet...
Sep 03, 2003 roguelazer link
Get kernel 2.6. :) It works great for me with 2.6.
Sep 03, 2003 Demonen link
Hmm... arts? esd?
I don't use either one.

Just plain ol' /dev/dsp and the sound is perfect.
(emu101k or whatever it's called is compiled into my 2.4.20 kernel)
Sep 03, 2003 zhuk link
If the driver is compiled into kernel, it is native OSS driver, not alsa oss emulation.
Sep 03, 2003 roguelazer link
Unless you have kernel 2.6. In which case OSS, ALSA and ALSA-OSS can all be compiled in at the same time for a "unique" effect.