1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/src/coreav.h

44 lines
755 B
C
Raw Normal View History

2014-09-11 21:44:34 +08:00
#ifndef COREAV_H
#define COREAV_H
2014-11-14 03:18:02 +08:00
#include <QHash>
2014-09-11 21:44:34 +08:00
#include <tox/toxav.h>
2014-10-24 04:07:44 +08:00
#include "video/netvideosource.h"
2014-09-11 21:44:34 +08:00
#if defined(__APPLE__) && defined(__MACH__)
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#else
#include <AL/al.h>
#include <AL/alc.h>
#endif
class QTimer;
struct ToxCall
{
ToxAvCSettings codecSettings;
QTimer *sendAudioTimer, *sendVideoTimer;
int callId;
int friendId;
bool videoEnabled;
bool active;
bool muteMic;
2014-10-28 20:50:30 +08:00
bool muteVol;
2014-09-11 21:44:34 +08:00
ALuint alSource;
2014-10-15 20:46:01 +08:00
NetVideoSource videoSource;
2014-09-11 21:44:34 +08:00
};
2014-11-13 19:18:04 +08:00
struct ToxGroupCall
{
ToxAvCSettings codecSettings;
QTimer *sendAudioTimer;
int groupId;
2014-11-17 00:45:06 +08:00
bool active = false;
2014-11-13 19:18:04 +08:00
bool muteMic;
bool muteVol;
2014-11-14 03:18:02 +08:00
QHash<int, ALuint> alSources;
2014-11-13 19:18:04 +08:00
};
2014-09-11 21:44:34 +08:00
#endif // COREAV_H