Remove incorrect code to adjust output queue capacity

This commit is contained in:
Paul Adenot 2023-05-17 11:44:20 +02:00
Родитель da01c85243
Коммит 48689ae7a7
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -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);