qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
22 #include "audio/iaudiocontrol.h"
23 #include "audio/iaudiosink.h"
24 #include "audio/iaudiosource.h"
26 #include <tox/toxav.h>
29 #include <QMetaObject>
99 TOXAV_FRIEND_CALL_STATE
getState()
const;
100 void setState(
const TOXAV_FRIEND_CALL_STATE& value);
102 void playAudioBuffer(
const int16_t* data,
int samples,
unsigned channels,
int sampleRate)
const;
110 TOXAV_FRIEND_CALL_STATE
state{TOXAV_FRIEND_CALL_STATE_NONE};
111 std::unique_ptr<IAudioSink>
sink;
135 std::map<ToxPk, std::unique_ptr<IAudioSink>>
peers;
QMetaObject::Connection videoInConn
void playAudioBuffer(const ToxPk &peer, const int16_t *data, int samples, unsigned channels, int sampleRate)
CoreVideoSource * videoSource
TOXAV_FRIEND_CALL_STATE getState() const
std::map< ToxPk, std::unique_ptr< IAudioSink > > peers
Keeps sources for users in group calls.
void onAudioSourceInvalidated()
bool getVideoEnabled() const
void onAudioSinkInvalidated(ToxPk peerId)
bool havePeer(ToxPk peerId)
void onAudioSinkInvalidated()
void setMuteVol(bool value)
void playAudioBuffer(const int16_t *data, int samples, unsigned channels, int sampleRate) const
QMetaObject::Connection audioSinkInvalid
ToxCall & operator=(const ToxCall &other)=delete
void onAudioSourceInvalidated()
void setVideoEnabled(bool value)
std::unique_ptr< IAudioSink > sink
void setActive(bool value)
void removePeer(ToxPk peerId)
std::unique_ptr< IAudioSource > audioSource
ToxGroupCall & operator=(ToxGroupCall &&other)=delete
This class represents a Tox Public Key, which is a part of Tox ID.
void setState(const TOXAV_FRIEND_CALL_STATE &value)
TOXAV_FRIEND_CALL_STATE state
State of the peer (not ours!)
void setNullVideoBitrate(bool value)
void setMuteMic(bool value)
std::map< ToxPk, QMetaObject::Connection > sinkInvalid
A VideoSource that emits frames received by Core.
bool getNullVideoBitrate() const
void addPeer(ToxPk peerId)
ToxFriendCall & operator=(ToxFriendCall &&other)=delete
CoreVideoSource * getVideoSource() const