# this is from adapted from http://alsa.opensrc.org/Jack_and_Loopback_device_as_Alsa-to-Jack_bridge and I don't understand it # speexrate seems to sound a bit better than samplerate, and might pop less, I don't know defaults.pcm.rate_converter "speexrate" # putting period/buffer size here will cause some youtube videos to be silent pcm.amix { type dmix ipc_key 219345 slave { pcm "hw:Loopback,0,0" format S32_LE rate 96000 } } # don't use braces for the slave device otherwise it won't work pcm.asnoop { type dsnoop ipc_key 219346 slave.pcm "hw:Loopback,0,1" } # period/buffer size might not even do anything here except add delay, I can't tell... make sure youtube videos aren't too desyncronised pcm.bridge_out { type dsnoop ipc_key 219348 slave { pcm "hw:Loopback,1,0" format S32_LE rate 96000 period_size 2048 buffer_size 4096 } } # the braces thing probably applies here too pcm.bridge_in { type plug slave.pcm "hw:Loopback,1,1" } pcm.aduplex { type asym playback.pcm "amix" capture.pcm "asnoop" } # if changing this file, keep an eye on whether audacity still has a "default" option that works pcm.!default { type plug slave.pcm "aduplex" } # apparently some programs look for card0 instead of default pcm.card0 { type plug slave.pcm "aduplex" } # apparently some programs look for a corresponding ctl device so we might as well let them find one ctl.aduplex { type hw card 0 } ctl.!default { type hw card 0 } ctl.card0 { type hw card 0 }