mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #5696
jenli669 (1): fix(audio): correctly loop incoming call sound
This commit is contained in:
commit
655ea4faf3
|
@ -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