Hmm, well, I tried playing a wave of the first track from the Halo 2 OST with aplay, and well, I'm getting an error. If I just use "aplay Halo\ 2\,\ Volume\ 1\ -\ 01\ -\ Halo\ Theme\ \(Mjolnir\ mix\).wav" it works fine. But if I try to use "aplay --device=48k Halo\ 2\,\ Volume\ 1\ -\ 01\ -\ Halo\ Theme\ \(Mjolnir\ mix\).wav" or "aplay --device=48khq Halo\ 2\,\ Volume\ 1\ -\ 01\ -\ Halo\ Theme\ \(Mjolnir\ mix\).wav" it tosses up an error.
aplay --device=48k Halo\ 2\,\ Volume\ 1\ -\ 01\ -\ Halo\ Theme\ \(Mjolnir\ mix\).wav
ALSA lib pcm_rate.c:1308:(snd_pcm_rate_open) Cannot open library for type x▒A
aplay: set_params:962: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (85331 85332)
PERIOD_SIZE: (3763 3764)
PERIOD_BYTES: (15052 15056)
PERIODS: (3 4)
BUFFER_TIME: (341315 341316)
BUFFER_SIZE: 15052
BUFFER_BYTES: 60208
TICK_TIME: 1000
aplay --device=48khq Halo\ 2\,\ Volume\ 1\ -\ 01\ -\ Halo\ Theme\ \(Mjolnir\ mix\).wav
ALSA lib pcm_rate.c:1308:(snd_pcm_rate_open) Cannot open library for type te_best
aplay: set_params:962: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (85331 85332)
PERIOD_SIZE: (3763 3764)
PERIOD_BYTES: (15052 15056)
PERIODS: (3 4)
BUFFER_TIME: (341315 341316)
BUFFER_SIZE: 15052
BUFFER_BYTES: 60208
TICK_TIME: 1000
Wonder if I'm missing something from my .asoundrc. I pretty much based it on the info from the PCM (digital audio) plugins page.
.asoundrc
pcm.48khq {
type plug
slave {
pcm "hw:0,0"
rate 48000
}
rate_converter "samplerate_best"
}
pcm.48k {
type plug
slave {
pcm "hw:0,0"
rate 48000
}
rate_converter "samplerate"
}
EDIT:
Aha! Figured out what I was doing wrong. plug should be rate, and rate_converter should be converter.
pcm.48khq {
type rate
slave {
pcm "hw:0,0"
rate 48000
}
converter "samplerate_best"
}
pcm.48k {
type rate
slave {
pcm "hw:0,0"
rate 48000
}
converter "samplerate"
}
Seems to work fine now. K, thanks to top I'm able to see that using 48k causes aplay to 5% CPU, and 48khq causes aplay to use 25% CPU, and hw only uses 0% CPU.
Still need to get a patchcord and see about doing some ABX tests to see if I can tell the difference between 48khq and hw. There is a difference with 48k though, mostly muffleness in the highend.