1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-06 04:27:56 +02:00
toxic/src/audio_call.h
2014-03-08 01:12:51 +01:00

30 lines
574 B
C

/*
* Toxic -- Tox Curses Client
*/
#ifndef _audio_h
#define _audio_h
#include <tox/toxav.h>
typedef struct ToxWindow ToxWindow;
typedef enum _AudioError
{
NoError = 0,
ErrorStartingCaptureDevice = 1 << 0,
ErrorStartingOutputDevice = 1 << 1,
ErrorStartingCoreAudio = 1 << 2
} AudioError;
/* You will have to pass pointer to first member of 'windows'
* declared in windows.c otherwise undefined behaviour will
*/
ToxAv* init_audio(ToxWindow* window, Tox* tox);
void terminate_audio();
int errors();
int start_transmission();
#endif /* _audio_h */