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

un-/subscribe audio in/out in tox-call

This commit is contained in:
Nils Fenner 2015-11-08 21:13:01 +01:00
parent 32bc99fb38
commit e7f666be77
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C

View File

@ -20,7 +20,9 @@ ToxCall::ToxCall(uint32_t CallId)
sendAudioTimer->setInterval(5);
sendAudioTimer->setSingleShot(true);
Audio::getInstance().subscribeInput();
Audio& audio = Audio::getInstance();
audio.subscribeInput();
audio.subscribeOutput();
#ifdef QTOX_FILTER_AUDIO
if (Settings::getInstance().getFilterAudio())
@ -56,7 +58,9 @@ ToxCall::~ToxCall()
{
QObject::disconnect(sendAudioTimer, nullptr, nullptr, nullptr);
sendAudioTimer->stop();
Audio::getInstance().unsubscribeInput();
Audio& audio = Audio::getInstance();
audio.unsubscribeInput();
audio.unsubscribeOutput();
}
if (alSource)