On Thu, 2006-01-05 at 13:42 -0500, Paul Fox wrote:
>  > > channel imply that one could play two digital sources at once
>  > > (e.g., two wav files) and have them mixed by the hardware?
>  > > 
>  > > if so, what devices would one use?
>  ...
>  > > voicemail, for instance.  i'd like to eliminate the nas server
>  > > (just to make things simpler) but i know of no other easy way to
>  > > do pcm signal mixing.  (i'd also be happy with having one input
>  > > override the other input -- i.e., the voice response menu system
>  > > would have priority over music.)
>  > 
>  > You must be using an old version of ALSA.  With 1.0.9 and later this
>  > should Just Work - if your hardware can't mix multiple channels then
>  > alsa-lib will handle the mixing.
> 
> doh.  okay, clearly i need to upgrade.  i'm running 1.0.1, but
> even if i were running something newer, it might not have occurred
> to me to try this.  i confess that once i get sound (or almost anything
> else, for that matter :-) working, i don't tend to touch it until i
> have to.
> 
>  > 
>  > You have to make sure all your ALSA apps are using the "default" PCM.
> 
> what does this mean, exactly?  "/dev/dsp"?
> 

/dev/dsp is the OSS emulation device.  I was referring to native ALSA.

>  > Some buggy apps like XMMS default to "hw:0,0" which has always been
>  > wrong.
> 
> am i to infer from this (and your mention of alsa-lib, above)
> that i can't do this from the shell?  i.e. can i simply cat two
> sound files to separate device nodes and have them mixed?  or do
> i have to use alsa-aware apps?
> 
> thanks very much for helping me understand this...

You can't cat files to /dev/dsp and have them be mixed (but cat file.wav
> /dev/dsp was never a good interface anyway) as the in-kernel OSS
emulation does not do software mixing.  But you can just "aplay
file.wav" from two different terminals and they will be mixed.

Lee



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to