diff options
-rw-r--r-- | src/cubeb_opensl.c | 7 |
1 files changed, 1 insertions, 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); |