aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2023-05-17 11:44:20 +0200
committerPaul Adenot <[email protected]>2023-05-17 13:38:27 +0200
commit48689ae7a73caeb747953f9ed664dc71d2f918d8 (patch)
treec122f3fbcad1fbf3317096c58b60ad4e441f1d38 /src
parentda01c85243a96b86db7cb03b0009faf380486be4 (diff)
downloadcubeb-48689ae7a73caeb747953f9ed664dc71d2f918d8.tar.gz
cubeb-48689ae7a73caeb747953f9ed664dc71d2f918d8.zip
Remove incorrect code to adjust output queue capacity
Diffstat (limited to 'src')
-rw-r--r--src/cubeb_opensl.c7
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);