Richard Fish wrote:

>Peter Gaži wrote:
>
>  
>
>>Hi people, 
>>
>>I am using kernel-builtin ALSA and dmix for sound, as my sound card
>>doesn't support hardware mixing, but i can't make teamspeak work. I
>>have read on the forums that dmix doesn't support full duplex, so i
>>would like to ask if anyone knows of some hack to get sound
>>recording/microphone work in this situation. 
>>
>>    
>>
>
>I've never needed to do this, but I think you might be able to do this
>with either jack (USE=jack emerge -Dv --newuse world) or dsnoop.
>
>http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php?module=Generic
>http://jackit.sourceforge.net
>
>
>-Richard
>
>  
>
I had similar problem. Try to put such a config in /etc/asound.conf (or
.asoundrc if you prefer). It helped me and now I can smoothly record
while playing at least 3 music files at once (at least through alsa output).

pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 8192
   rate 44100
    }
 
    bindings {
        0 0
        1 1
    }
}

pcm.asymed {
        type asym
        playback.pcm "dmixer"
        capture.pcm "hw:0,0"
}


 
pcm.dsp0 {
    type plug
    slave.pcm "asymed"
}
 
pcm.!default {
        type plug
        slave.pcm "asymed"
}
 
pcm.default {
   type plug
   slave.pcm "asymed"
}
 
ctl.mixer0 {
    type hw
    card 0
}

You can see more hardware specific configs in dmix HOWTO on gentoo-wiki,
AFAIR. After changing the config, don't forget to restart ALSA.

Rhywek.



-- 
[email protected] mailing list

Reply via email to