How to get smooth 48000kHz playing with this asoundrc ?


Linux-SWAT

Forum Addict!
Hi,

I tried various settings, but every 48000kHz file stutter.

The asoundrc :
pcm.dmixed {
type dmix
ipc_key 1234
slave {
pcm "hw:0"
buffer_size 8192
period_size 2048
#periods 128
period_time 0
buffer_time 0
rate 44100
}
}

pcm.softvol {
type softvol
slave {
pcm "dmixed"
}
control {
name "Master"
card 0
}
}

pcm.!default {
type plug
slave.pcm "softvol"
}

pcm.dsp0 {
type plug
slave {
pcm "hw:0"
}
}

ctl.dsp0 {
type plug
slave.pcm "hw:0"
}

ctl.mixer0 {
type plug
slave.pcm "hw:0"
}

pcm.imic {
type route
slave {
pcm "hw:0,1"
channels 2
}
ttable {
0.0 = 1
}
}

pcm.xmic {
type route
slave {
pcm "hw:0,1"
channels 2
}
ttable {
0.1 = 1
}
}
 
As far as I know, alsa cannot resample on the fly. Audacious does it though...
 
That's weird because it worked well with SL4P-14.1.
I only encounter the problem with 14.2, probably because of updated ALSA libs, or pulse.
 
As far as I know, alsa cannot resample on the fly.
That would mean that a lot of Pidgin users should be angry, because all its notification sounds use 22050 Hz.

ALSA (or rather dmix?) does support resampling, but don't expect any highly sophisticated algorithms. 44100 Hz <=> 48000 Hz is somewhat iffy in general due to being so close together.
 
The hardware supports 48kHz just fine, does at least randomness play?
Code:
aplay -f dat -D hw:0,0 /dev/urandom
 
Back
Top