From 224a3f9d02c743b2fde89122512a145c8a92d0bb Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Wed, 17 May 2023 11:44:20 +0200 Subject: [PATCH] Remove incorrect code to adjust output queue capacity --- src/cubeb_opensl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/cubeb_opensl.c b/src/cubeb_opensl.c index 2a8e4a2..7165446 100644 --- a/src/cubeb_opensl.c +++ b/src/cubeb_opensl.c @@ -1182,12 +1182,7 @@ opensl_configure_playback(cubeb_stream * stm, cubeb_stream_params * params) // Calculate the capacity of input array stm->queuebuf_capacity = NBUFS; - if (stm->output_enabled) { - // Full duplex, update capacity to hold 1 sec of data - stm->queuebuf_capacity = - 1 * stm->output_configured_rate / stm->queuebuf_len; - } - // Allocate input array + // Allocate input arrays stm->queuebuf = (void **)calloc(1, sizeof(void *) * stm->queuebuf_capacity); for (uint32_t i = 0; i < stm->queuebuf_capacity; ++i) { stm->queuebuf[i] = calloc(1, stm->queuebuf_len);