2014-06-22 02:18:23 +02:00
|
|
|
/* audio_call.h
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 Toxic All Rights Reserved.
|
|
|
|
*
|
|
|
|
* This file is part of Toxic.
|
|
|
|
*
|
|
|
|
* Toxic is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Toxic is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Toxic. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
2014-02-23 00:00:34 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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-06-24 00:54:23 +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-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-07-04 18:04:03 +02:00
|
|
|
void stop_current_call(ToxWindow *self);
|
2014-06-21 01:58:00 +02:00
|
|
|
|
2014-04-08 12:11:10 +02:00
|
|
|
#endif /* _audio_h */
|