## Example ALSA Configuration (.asoundrc)

From: andrew cooke <andrew@...>

Date: Thu, 15 Nov 2012 19:59:43 -0300

I've finally solved the noisy audio issue.  It was only occuring at 44.1kHz
for some reason, but since that's the sampling frequency of CDs it was what
I wanted to use.  Anyway, it turns out that it doesn't happen if I connect
the D1 directly to the computer (instead of through a USB hub).

With that contex, hopefully this is self-explanatory.

Andrew

# this sets the default rate to 44.1kHz for all cards.  since that is the
# rate for ripped CD files, it means a direct signal with no resampling.
defaults.pcm.dmix.rate 44100

# however, the D2 resamples anyway, and is on a USB bridge that is noisy
# with simple 44.1kHz data, so we resample in ALSA and send a stream at
# 96kHz.
pcm.D296k {
type dmix
ipc_key 1024
slave {
pcm "hw:3"
rate 96000
}
hint {
show on
description "D2 96kHz"
}
}

# audacious won't play to plug:xxx devices, but we can work round that
# by setting the D2 as default and selecting that.
pcm.!default plug:D296k