Hello!

> i think esd tries to set too small fragment size.
> anyway, could you check the output of
> /proc/asound/card0/pcm0p/sub0/hw_params for each bad case?

Yes, it looks like that.  If the sound is bad, period_size is 1024 or
less.  If the sound is good, period_size is 2048 or more.

> > timidity -Ou -o - ode2joy.mid | aplay -            Bad

That's the simplest case because it doesn't involve OSS emulation.  -Ou 
means using Sun AU format.  The default sampling rate is 8k.  The sound 
becomes good when the sampling rate is more than 12k.  Now let's look at 
this:

timidity -Ou -o - -s 12k ode2joy.mid | aplay -
bad sound
/proc/asound/card0/pcm0p/sub0/hw_params:

access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 1
rate: 12000 (12000/1)
period_size: 1024
buffer_size: 6000
tick_time: 10000


timidity -Ou -o - -s 12.5k ode2joy.mid | aplay -
good sound
/proc/asound/card0/pcm0p/sub0/hw_params:

access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 1
rate: 12500 (12500/1)
period_size: 2048
buffer_size: 6250
tick_time: 10000


buffer_size changed insignificantly.  period_size jumped from 1024 to 
2048.  There are no other changes.

-- 
Regards,
Pavel Roskin



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to