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:
parent
8568a14c93
commit
85f90ab221
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user