LibAudio: Seek to the first frame on reset in FLAC

The files weren't starting exactly from the beginning before.
This happened because the parameter now takes the sample index, instead
of a seekpoint.
This commit is contained in:
Karol Kosek 2022-07-26 20:54:39 +02:00 committed by Linus Groh
commit fe60459353
Notes: sideshowbarker 2024-07-17 08:32:50 +09:00

View file

@ -201,7 +201,7 @@ ErrorOr<FlacRawMetadataBlock, LoaderError> FlacLoaderPlugin::next_meta_block(Big
MaybeLoaderError FlacLoaderPlugin::reset() MaybeLoaderError FlacLoaderPlugin::reset()
{ {
TRY(seek(m_data_start_location)); TRY(seek(0));
m_current_frame.clear(); m_current_frame.clear();
return {}; return {};
} }