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

Toxic now supports audio calls

This commit is contained in:
mannol
2014-03-07 03:14:04 +01:00
parent fd86f01fd0
commit 416419a6e7
13 changed files with 804 additions and 24 deletions

View File

@ -5,4 +5,30 @@
#ifndef _audio_h
#define _audio_h
#ifdef _SUPPORT_AUDIO
#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 /* _SUPPORT_AUDIO */
#endif /* _audio_h */