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

VAD sort of works

This commit is contained in:
mannol
2014-06-21 01:58:00 +02:00
parent 7ccf4b6432
commit 29b283c176
13 changed files with 314 additions and 434 deletions

View File

@ -7,19 +7,15 @@
#include <tox/toxav.h>
#define MAX_DEVICES 32
#include "device.h"
typedef enum _AudioError {
NoError = 0,
ErrorStartingCaptureDevice = 1 << 0,
ErrorStartingOutputDevice = 1 << 1,
ErrorStartingCoreAudio = 1 << 2
ae_None = 0,
ae_StartingCaptureDevice = 1 << 0,
ae_StartingOutputDevice = 1 << 1,
ae_StartingCoreAudio = 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
@ -27,9 +23,11 @@ typedef enum _Devices {
ToxAv *init_audio(ToxWindow *self, Tox *tox);
void terminate_audio();
int errors();
int clear_call_settings_per_se(ToxWindow *self);
int start_transmission(ToxWindow *self);
int device_set(ToxWindow *self, _Devices type, long int selection);
int stop_transmission(int call_index);
int device_set(ToxWindow* self, DeviceType type, long int selection);
#endif /* _audio_h */