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:
@ -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 */
|
Reference in New Issue
Block a user