> well, it would be possible by re-defining the pcm.hw. > pcm.hw is defined in /usr/share/alsa/alsa.conf and you can override it > by your own definition with the '!' modifier. > it's pretty tricky, and i'm not sure whether it works :)
I've followed your advice and here's my asoundrc so far:- //just an alias for my main soundcard pcm.maincard { type hw card 0 } ctl.maincard { type hw card 0 } //an alias for the dmix plugin which will then use the maincard pcm.mixmonkey { type dmix ipc_key 1234 ipc_key_add_uid true slave { pcm maincard format "S16_LE" rate 48000 } } //now lets override pcm.hw and pcm.default pcm.!hw { type plug slave { pcm mixmonkey } } pcm.!default { type plug slave { pcm mixmonkey } } //end of file using this i can get programs such as aplay, ogg123 and xmms to all happily run at the same time... but its still not perfect:- 1) xmms wont make any sound if put in mmap mode.. isnt this passed through by the "plug" or dmix plugins? or emulated 2) mplayer will now use my alias (mixmonkey) yay!, but it cant play sound because when it calls snd_pcm_hw_params_set_period_size() it gets back an "Invalid argument" error. maybe thats just a bug with mplayer's alsa support, but given that mmap doesnt work with dmix maybe there's more that doesnt work. any thoughts, comments, help or useful links will be greatly appreciated. Thanks, Alex ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user