Skip to content

Commit

Permalink
audio: Reset symphonia decoder on loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Herschel committed Jul 29, 2022
1 parent 917f59e commit b53b667
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/backend/audio/decoders/mp3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ pub mod symphonia {
formats::SeekTo::TimeStamp { track_id: 0, ts: 0 },
);
self.sample_buf.clear();
self.decoder.reset();
self.cur_sample = 0;
self.stream_ended = false;
self.next_frame();
Expand Down

0 comments on commit b53b667

Please sign in to comment.