Merge pull request #5808 from unwiredben/add-mp3decoder-decoded-samples

audiomp3: reset decoded_samples when file resets
This commit is contained in:
Dan Halbert 2022-01-03 23:27:52 -05:00 committed by GitHub
commit 4822c4592d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,6 +304,7 @@ void audiomp3_mp3file_reset_buffer(audiomp3_mp3file_obj_t *self,
f_lseek(&self->file->fp, 0);
self->inbuf_offset = self->inbuf_length;
self->eof = 0;
self->samples_decoded = 0;
self->other_channel = -1;
mp3file_update_inbuf_half(self);
mp3file_skip_id3v2(self);