# HG changeset patch # User John Lindgren # Date 1248373570 14400 # Node ID 263c7d983100a472dafd087ef44630cef773572b # Parent 83b1a4e5f4535396b7700080a93a6d51a328fe36 alsa-ng: 0.1 sec hard minimum buffer size. diff -r 83b1a4e5f453 -r 263c7d983100 src/alsa-ng/alsa-core.c --- a/src/alsa-ng/alsa-core.c Wed Jul 22 16:42:16 2009 -0400 +++ b/src/alsa-ng/alsa-core.c Thu Jul 23 14:26:10 2009 -0400 @@ -363,7 +363,7 @@ bitwidth = snd_pcm_format_physical_width(afmt); bps = (rate * bitwidth * nch) >> 3; - buf_size = aud_cfg->output_buffer_size ? aud_cfg->output_buffer_size : 500; + buf_size = MAX(aud_cfg->output_buffer_size, 100); ringbuf_size = buf_size * bps / 1000; if (alsaplug_ringbuffer_init(&pcm_ringbuf, ringbuf_size) == -1) {