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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user