зеркало из https://github.com/mozilla/cubeb.git
Remove incorrect code to adjust output queue capacity
This commit is contained in:
Родитель
da01c85243
Коммит
48689ae7a7
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче