Skip to contentSkip to conversation

ymfpci : four speakers with OSS-emulation

DISCUSSION [email protected] 3 participants 3 messages Mar 14, 2002

lore
Share & tools
lore
#0 lore raw

Cool, it works with aplay ! But the .asoundrc isn't right, you have to change it :

pcm.ch4dup {
             type plug
             slave.pcm surround40
             ttable.0.0 1
             ttable.0.1 1
             ttable.0.2 1
             ttable.0.3 1
     }

and then
aplay -D ch4dup foo.wav will play the sound on the four speakers !!!

Otherwise, I have tried aoss, and it doesn't work. Of course, I have added the following line to the .asoundrc file
pcm.dsp0 pcm.ch4dup
and then I have tried "aoss tuxracer", and there was no sound in the game. But I use the CVS version of alsa-OSS, so maybe there is a bug, I don't know. Furthermore, why pcm.dsp0 and not pcm.dsp1 or pcm.dsp2 ?

Thank you very much for your great help !
Xavier

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#1 lore raw

At Thu, 14 Mar 2002 14:30:52 +0100 (MET),

Quoted 11 lines · [email protected] wrote:

Cool, it works with aplay ! But the .asoundrc isn't right, you have to change it :

pcm.ch4dup {
             type plug
             slave.pcm surround40
             ttable.0.0 1
             ttable.0.1 1
             ttable.0.2 1
             ttable.0.3 1
     }
Quoted 2 lines

and then
aplay -D ch4dup foo.wav will play the sound on the four speakers !!!

no, this will route only the left channel to all 4 speakers..

Quoted 5 lines

Otherwise, I have tried aoss, and it doesn't work. Of course, I have added the following line to the .asoundrc file
pcm.dsp0 pcm.ch4dup
and then I have tried "aoss tuxracer", and there was no sound in the game. But I use the CVS version of alsa-OSS, so maybe there is a bug, I don't know.

if the application needs mmap, this doesn't work. i'm not sure whether tux racer requires oss mmap, though.

Quoted 1 line

Furthermore, why pcm.dsp0 and not pcm.dsp1 or pcm.dsp2 ?

because as default /dev/dsp is mapped /dev/dsp0. /dev/dsp1 and dsp2 are for the second and third card.

Takashi

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#2 lore raw

I'm sorry, but my .asoundrc work very fine for me.
O.K. for tux racer, I have understood. XMMS works fine with aoss, that's great !
And for the application which use mmap, there is no solution, isn't it ?

Le Jeudi 14 Mars 2002 18:01, vous avez écrit :

Quoted 28 lines

At Thu, 14 Mar 2002 14:30:52 +0100 (MET),

Quoted 10 lines · [email protected] wrote:

Cool, it works with aplay ! But the .asoundrc isn't right, you have to change it :

pcm.ch4dup {
             type plug
             slave.pcm surround40
             ttable.0.0 1
             ttable.0.1 1
             ttable.0.2 1
             ttable.0.3 1
     }
Quoted 2 lines

and then
aplay -D ch4dup foo.wav will play the sound on the four speakers !!!

no, this will route only the left channel to all 4 speakers..

Quoted 6 lines

Otherwise, I have tried aoss, and it doesn't work. Of course, I have added the following line to the .asoundrc file
pcm.dsp0 pcm.ch4dup
and then I have tried "aoss tuxracer", and there was no sound in the game. But I use the CVS version of alsa-OSS, so maybe there is a bug, I don't know.

if the application needs mmap, this doesn't work. i'm not sure whether tux racer requires oss mmap, though.

Quoted 7 lines
Quoted 1 line

Furthermore, why pcm.dsp0 and not pcm.dsp1 or pcm.dsp2 ?

because as default /dev/dsp is mapped /dev/dsp0. /dev/dsp1 and dsp2 are for the second and third card.

Takashi

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel