On Tue, 27 Jan 2004 02:50:32 -0600 (CST)
Stephen Stocker <[EMAIL PROTECTED]> wrote:
> # Currently only half duplex
> pcm.duplex {
> type asym
> playback.pcm "dmix"
> capture.pcm "dsnoop"
> }
hmm, this looks alright. I defined them like this (i don't think it
makes a diffrence though, it is basically the same, just a little more
spread out):
#asym fun start here. we define one pcm device called "dmixed"
pcm.dmixed {
ipc_key 1025
type dmix
slave.pcm "hw:0,0"
}
#one called "dsnooped" for capturing. i needed the ipc_keys.
#otherwise alsa_lib would complain about them not being unique.
pcm.dsnooped {
ipc_key 1026
type dsnoop
slave.pcm "hw:0,0"
}
#and this is the real thing
pcm.asymed {
type asym
playback.pcm "dmixed"
capture.pcm "dsnooped"
}
#a quick plug plugin for above device to do the converting magic
pcm.pasymed {
type plug
slave.pcm "asymed"
}
#a ctl device to keep xmms happy. just an alias to the ctl device on lmy
#soundcard..
ctl.pasymed {
type hw
card 0
}
#done
This way i can use the pasymed device in all alsa apps to playback sound
[it does playback. i can't hear it though. thant's another story]. I can
also record with a command similar to this.
[EMAIL PROTECTED]:~$ arecord -Dpasymed -t wav -r 44100 foo2.wav
Hmm, one thing i could imagine is that arecord does record 8khz mono
sounds by default. Maybe even the plug plugin cannot convert the pcm
stream from the soundcard to this format. Try with different formats and
sampling rates (see man arecord)..
Anyone else got an idea?
Flo
--
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user