Vaclav Peroutka wrote:
> I am interested in the method how to put different signals into front
> and rear speakers. My intention is something like /dev/dsp0 for front
> and /dev/dsp1 for rear speakers as in OSS.

It's possible if your program support ALSA.

Put the following in your ~/.asoundrc:

  pcm_slave.sb_4ch {
    pcm "hw:0"
    channels 4
  }

  pcm.ch12 {
    type dshare
    slave sb_4ch
    ipc_key 424242
    ipc_key_add_uid no
    bindings {
      0 0
      1 1
    }
  }

  pcm.ch34 {
    type dshare
    slave sb_4ch
    ipc_key 424242
    ipc_key_add_uid no
    bindings {
      0 2
      1 3
    }
  }

Then use "ch12" and "ch34" as the respective device name.


HTH
Clemens




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to