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-06-21 01:58:00 +02:00
|
|
|
#include "device.h"
|
2014-04-08 23:20:21 +02:00
|
|
|
|
2014-04-19 23:58:13 +02:00
|
|
|
typedef enum _AudioError {
|
2014-06-21 01:58:00 +02:00
|
|
|
ae_None = 0,
|
|
|
|
ae_StartingCaptureDevice = 1 << 0,
|
|
|
|
ae_StartingOutputDevice = 1 << 1,
|
|
|
|
ae_StartingCoreAudio = 1 << 2
|
2014-03-07 03:14:04 +01:00
|
|
|
} AudioError;
|
|
|
|
|
2014-04-08 23:20:21 +02:00
|
|
|
|
2014-04-19 23:58:13 +02:00
|
|
|
/* You will have to pass pointer to first member of 'windows'
|
|
|
|
* declared in windows.c otherwise undefined behaviour will
|
2014-03-07 03:14:04 +01:00
|
|
|
*/
|
2014-04-19 23:58:13 +02:00
|
|
|
ToxAv *init_audio(ToxWindow *self, Tox *tox);
|
2014-03-07 03:14:04 +01:00
|
|
|
void terminate_audio();
|
|
|
|
|
2014-06-21 01:58:00 +02:00
|
|
|
int clear_call_settings_per_se(ToxWindow *self);
|
2014-03-07 03:14:04 +01:00
|
|
|
|
2014-03-25 09:39:44 +01:00
|
|
|
int start_transmission(ToxWindow *self);
|
2014-06-21 01:58:00 +02:00
|
|
|
int stop_transmission(int call_index);
|
|
|
|
int device_set(ToxWindow* self, DeviceType type, long int selection);
|
|
|
|
|
2014-03-07 03:14:04 +01:00
|
|
|
|
2014-04-08 12:11:10 +02:00
|
|
|
#endif /* _audio_h */
|