How to get smooth 48000kHz playing with this asoundrc ?


Linux-SWAT

Forum Addict!
Joined
Feb 13, 2010
Messages
9,171
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
}
}
 
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.
 
I have no problem playing 48kHz when removing this asoundrc.
I do not have an .asoundrc but the /etc/asound.conf is similar (but has fewer parameters than your example)
 
Yes, mine is useful for VOIP, maybe I should check if it's still mandatory.
 
Back
Top