[CentOS] alsa asound.conf or .asoundrc that combines multiple playback and capture

Jerry Geis geisj at pagestation.com
Sat Nov 12 04:35:28 UTC 2005


I have searched all around and combined items in an /etc/asound.conf file
to have by default a capture and multiple playback for alsa.

I am looking for a way to:
something like "aplay --nonblock test.wav" having at least 2 active one time
and at that same time do "arecord --nonblock -d 1 input.wav"

I have something like:

pcm.!dmixer {
        type dmix                       # plugin type
        ipc_key 5678293                 # unique ipc id
        ipc_perm 0666                   # would like to use icp_group 
instead
        ipc_key_add_uid no              # share the same mixer with all 
users
        slave {
                pcm "hw:0,0"
                period_time 0           # needed by oss (= 0)
                period_size 1024        # needed by oss (= 2^n)
                period_size 8192        # needed by oss (= 2^n)
                format S16_LE
                rate 48000
        }
}
pcm.!dsnoop {
        type dsnoop                       # plugin type
        ipc_key 5678293                 # unique ipc id
        ipc_perm 0666                   # would like to use icp_group 
instead
        ipc_key_add_uid no              # share the same mixer with all 
users
        slave {
                pcm "hw:1,0"
                period_time 0           # needed by oss (= 0)
                period_size 1024        # needed by oss (= 2^n)
                period_size 8192        # needed by oss (= 2^n)
                format S16_LE
                rate 48000
        }
}

That sort of works. However when playing a wav file and recording sometimes
I get record overrun errors and then the "-d1" does NOT stop after 1 second.


Does anyone have a working mulitple playback and capture asound.conf 
file????

Thanks for sharing if you do.

Jerry




More information about the CentOS mailing list