1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-03 17:47:46 +02:00
toxic/src/audio_call.h
Sean Qureshi 4cac797b40
General cleanup
Signed-off-by: Sean Qureshi <sean@tox.im>
2014-04-19 14:58:13 -07:00

36 lines
701 B
C

/*
* Toxic -- Tox Curses Client
*/
#ifndef _audio_h
#define _audio_h
#include <tox/toxav.h>
#define MAX_DEVICES 32
typedef enum _AudioError {
NoError = 0,
ErrorStartingCaptureDevice = 1 << 0,
ErrorStartingOutputDevice = 1 << 1,
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
*/
ToxAv *init_audio(ToxWindow *self, Tox *tox);
void terminate_audio();
int errors();
int start_transmission(ToxWindow *self);
int device_set(ToxWindow *self, _Devices type, long int selection);
#endif /* _audio_h */