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

fix(audio): correctly loop incoming call sound

Reordered audioNotification play/loop calls.
Fixes #5680
This commit is contained in:
jenli669 2019-06-12 22:56:45 +02:00
parent 8568a14c93
commit 85f90ab221
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -949,11 +949,11 @@ void Widget::playNotificationSound(IAudioSink::Sound sound, bool loop)
connect(audioNotification.get(), &IAudioSink::finishedPlaying, this,
&Widget::cleanupNotificationSound);
audioNotification->playMono16Sound(sound);
if (loop) {
audioNotification->startLoop();
}
audioNotification->playMono16Sound(sound);
}
void Widget::cleanupNotificationSound()