1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 15:06:45 +02:00

add audio settings for conf file

This commit is contained in:
Jfreegman
2014-04-08 17:20:21 -04:00
parent 9fbf7bd1c1
commit 4643996c3a
6 changed files with 69 additions and 22 deletions

View File

@ -7,6 +7,8 @@
#include <tox/toxav.h>
#define MAX_DEVICES 32
typedef struct ToxWindow ToxWindow;
typedef enum _AudioError
@ -17,6 +19,12 @@ typedef enum _AudioError
ErrorStartingCoreAudio = 1 << 2
} AudioError;
typedef enum _Devices
{
input,
output,
} _Devices;
/* You will have to pass pointer to first member of 'windows'
* declared in windows.c otherwise undefined behaviour will
*/
@ -26,5 +34,6 @@ void terminate_audio();
int errors();
int start_transmission(ToxWindow *self);
int device_set(ToxWindow *self, _Devices type, long int selection);
#endif /* _audio_h */