1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-01 20:07:46 +02:00
toxic/src/audio_call.h

38 lines
703 B
C
Raw Normal View History

2014-02-23 00:00:34 +01:00
/*
* Toxic -- Tox Curses Client
*/
#ifndef _audio_h
#define _audio_h
2014-03-07 03:14:04 +01:00
#include <tox/toxav.h>
2014-04-08 23:20:21 +02:00
#define MAX_DEVICES 32
2014-03-07 03:14:04 +01:00
typedef enum _AudioError
{
NoError = 0,
ErrorStartingCaptureDevice = 1 << 0,
ErrorStartingOutputDevice = 1 << 1,
ErrorStartingCoreAudio = 1 << 2
} AudioError;
2014-04-08 23:20:21 +02:00
typedef enum _Devices
{
input,
output,
} _Devices;
2014-03-07 03:14:04 +01:00
/* 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);
2014-03-07 03:14:04 +01:00
void terminate_audio();
int errors();
int start_transmission(ToxWindow *self);
2014-04-08 23:20:21 +02:00
int device_set(ToxWindow *self, _Devices type, long int selection);
2014-03-07 03:14:04 +01:00
#endif /* _audio_h */