Browse Source

fix(audio): correctly loop incoming call sound

Reordered audioNotification play/loop calls.
Fixes #5680
reviewable/pr5696/r1
jenli669 6 years ago
parent
commit
85f90ab221
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E
  1. 4
      src/widget/widget.cpp

4
src/widget/widget.cpp

@ -949,11 +949,11 @@ void Widget::playNotificationSound(IAudioSink::Sound sound, bool loop) @@ -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…
Cancel
Save