Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(audio): correctly loop incoming call sound
Browse files Browse the repository at this point in the history
Reordered audioNotification play/loop calls.
Fixes #5680
  • Loading branch information
Kribylet committed Jun 12, 2019
1 parent 8568a14 commit 85f90ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 85f90ab

Please sign in to comment.