summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibAudio
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2022-07-26 20:54:39 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-26 23:59:06 +0100
commitfe604593535746312eb7af87ddb4b5446e975ca3 (patch)
tree148e0369e0ba1730168729d3f8e5be7eb13e00e6 /Userland/Libraries/LibAudio
parent2878ad681efcbff0a18be4856f25124c46d281c9 (diff)
downloadserenity-fe604593535746312eb7af87ddb4b5446e975ca3.zip
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.
Diffstat (limited to 'Userland/Libraries/LibAudio')
-rw-r--r--Userland/Libraries/LibAudio/FlacLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibAudio/FlacLoader.cpp b/Userland/Libraries/LibAudio/FlacLoader.cpp
index d8e4c2135f..fd89e5e7e8 100644
--- a/Userland/Libraries/LibAudio/FlacLoader.cpp
+++ b/Userland/Libraries/LibAudio/FlacLoader.cpp
@@ -201,7 +201,7 @@ ErrorOr<FlacRawMetadataBlock, LoaderError> FlacLoaderPlugin::next_meta_block(Big
MaybeLoaderError FlacLoaderPlugin::reset()
{
- TRY(seek(m_data_start_location));
+ TRY(seek(0));
m_current_frame.clear();
return {};
}