On Sat, 2006-07-22 at 22:28 -0700, Alec Bennett wrote:
> 
>         What do you want to do with the right channel ?
>         If you just want to leave it empty you can play your file
>         through the sound card and just mute the right channel.
>         Dmitry/
> 
> The problem is something else will be playing on the right channel.
> 
> 
> I have a bunch of mono wav files, and I want to play different files
> on different channels of different soundcards. The different
> soundcards part is easy, but the different channels part.... 
> 
> 
I have a setup like that (no pymedia in this one though), and I use alsa
to separate the channels. I put this in asoundrc:

pcm.dshare {
    type dmix
    ipc_key 2048
    slave {
        pcm "hw:0"
        channels 2
    }
}
pcm.bathroom {
    type plug
    slave {
        pcm "dshare"
    }
    ttable.0.0 1
    ttable.1.0 1
}
pcm.frontdoor {
    type plug
    slave {
        pcm "dshare"
    }
    ttable.0.1 1
    ttable.1.1 1
}


and then I can play out like this:

mpg123 -o alsa09 -a bathroom song.mp3
aplay -D bathroom ...



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users

Reply via email to