Skip to content

Commit

Permalink
More cleanup, restore buffer clearing on stop
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Méndez committed Sep 17, 2024
1 parent b68f9c8 commit eefe343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 100 deletions.
100 changes: 0 additions & 100 deletions player.pro

This file was deleted.

2 changes: 2 additions & 0 deletions src/audiosourcefile/mediaplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ void MediaPlayer::stop(bool stopAudioOutput)
return;

if(stopAudioOutput) m_audioOutput->stop();
// Clear buffers, avoids pops and clicks when playing after stopping
this->reset();
// Fully reset audio output
clearAudioOutput();
setupAudioOutput();
Expand Down

0 comments on commit eefe343

Please sign in to comment.