1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 13:26:44 +02:00

Rework audio device handling

We now have at most one input and one output device open at any time,
but can have multiple capture callbacks and multiple output sources.
This commit is contained in:
zugz
2020-04-04 00:00:00 +00:00
committed by zugz (tox)
parent dac0124f0f
commit daf794c4a2
9 changed files with 472 additions and 452 deletions

View File

@ -180,7 +180,7 @@ void m_open_device(void)
}
/* Blah error check */
open_primary_device(output, &Control.device_idx, 48000, 20, 1);
open_output_device(&Control.device_idx, 48000, 20, 1);
device_opened = true;
}