Skip to content

Commit

Permalink
Merge pull request #114 from jrdennisoss/issue-113
Browse files Browse the repository at this point in the history
Force audio decoder header reacquision on byte seek
  • Loading branch information
jrdennisoss committed Apr 18, 2022
2 parents b7ce017 + 60702f4 commit 26e1cb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dosbox-0.74-3/src/hardware/reelmagic_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ namespace { class ReelMagic_MediaPlayerImplementation : public ReelMagic_MediaPl
plm_rewind(_plm);
plm_buffer_seek(_plm->demux->buffer, (size_t)offset);
_audioFifo.Clear();
if (_plm->audio_decoder) //this is a hacky way to force an audio decoder reset...
_plm->audio_decoder->has_header = FALSE; //something (hopefully not sample rate) changes between byte seeks in crime patrol...
advanceNextFrame();
}
void NotifyConfigChange() {
Expand Down

0 comments on commit 26e1cb3

Please sign in to comment.