Re: Need help with asound.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adam Nielsen wrote:
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.

  
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.
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
  
What if I need a more generic version of asound.conf so it works without changes on machines where spdif is hw:0,2 ?
You can also set this if you want something other than 48kHz:

  defaults.pcm.dmix.rate 48000
  
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.
Make sure you use Flash >= 9 for ALSA support.
  
Of course :) I'm using Ubuntu 7.10 BTW.

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

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux