Adam Nielsen wrote:
I wrote this asound.conf because for some reason ALSA used 44.1KHz and the sound card was locked to 48KHz, resulting in a very annoying artifact. The idea was to force it to covert everything to 48KHz when using spdif.The problem is that I can't hear two concurrent audio streams at the same time when using the default device. I tried setting things up using dmix, but failed miserably. Any ideas what to do to make two applications play simultaneously through spdif based on this configuration? (It's mainly to get Flash to play through S/PDIF).The default ALSA config dmixes everything at 48kHz so you shouldn't need to set that explicitly. All you should need to do is tell dmix to output via SPDIF. What if I need a more generic version of asound.conf so it works without changes on machines where spdif is hw:0,2 ?For me, hw:0,1 is the SPDIF connector, so I just put this in /etc/asound.conf: defaults.pcm.card 0 defaults.pcm.device 1 I'm trying to make sense of the files in /usr/share/alsa and extrapolate the language so I can understand the flow and write an entire asound.conf script, but I was thinking there's a simpler way to do this, since the "spdif" pcm is already pointing to the right device.You can also set this if you want something other than 48kHz: defaults.pcm.dmix.rate 48000 Of course :) I'm using Ubuntu 7.10 BTW.Make sure you use Flash >= 9 for ALSA support. Thanks, Radu |
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user