[Alsa-user] What is Period_(time,size) and buffer size.
Brought to you by:
perex
|
From: Amaury De G. <ama...@gm...> - 2008-04-26 08:02:08
|
Hi,
I have an ESI juli@ and I'm using optical s/pdif. I've had a very bad
sound, to correct it I setup period_time period_size and buffer_size
to correct the problem (as seen in forums).
But I don't undertsand well what is it. If someone could explain to me
or give me a link to documentation about that.
I notice also that If I use sample rate of 44100 khz the sound is good
even without setting period_* and buffer_size. So I think it's related
to upsampling. (Ok in my case rate of 96000 isn't needed but I think
the sound must be correct even with an upsampling).
Note: I have an engineering background so I think I can understand
technical details.
Here my .asoundrc:
defaults.pcm.rate_converter "samplerate_best"
pcm.!default {
type plug
slave.pcm {
type dmix
ipc_key 1478
slave {
pcm "hw:0,1"
format S32_LE
period_time 0
period_size 1024
#
buffer_size 8192
rate 96000
}
}
}
Thanks a lot
|