1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 06:06:45 +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

@ -157,16 +157,9 @@ struct ToxWindow {
void(*onEnd)(ToxWindow *, ToxAV *, uint32_t, int);
void(*onWriteDevice)(ToxWindow *, Tox *, uint32_t, int, const int16_t *, unsigned int, uint8_t, unsigned int);
int device_selection[2]; /* -1 if not set, if set uses these selections instead of primary device */
bool is_call;
int ringing_sound;
#ifdef VIDEO
int video_device_selection[2]; /* -1 if not set, if set uses these selections instead of primary video device */
#endif /* VIDEO */
#endif /* AUDIO */
int active_box; /* For box notify */