summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/alsa/alsa-core-pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/alsa/alsa-core-pcm.c b/plugins/alsa/alsa-core-pcm.c
index 25872ae..7170945 100644
--- a/plugins/alsa/alsa-core-pcm.c
+++ b/plugins/alsa/alsa-core-pcm.c
@@ -708,7 +708,7 @@ PUBLIC int AlsaPcmCopy(SoftMixerT *mixer, AlsaStreamAudioT *stream, AlsaPcmCtlT
AFB_ApiInfo(mixer->api, "%s: Frame size is %zu", __func__, cHandle->frame_size);
- snd_pcm_uframes_t nbFrames = 2 * opts->rate; // Exactly 2 second of buffer
+ snd_pcm_uframes_t nbFrames = opts->rate / 2; // Exactly 500 milliseconds of buffer
cHandle->rbuf = alsa_ringbuf_new(nbFrames, cHandle->frame_size);