1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:57:44 +00:00

LibAudio: Extract MP3 synchronize to static helper function

This comes in handy when we want to sniff an MP3 file with a stream
outside of the loader.
This commit is contained in:
kleines Filmröllchen 2023-04-01 17:21:49 +02:00 committed by Sam Atkins
parent aec3d9d84e
commit dfd48ab643
2 changed files with 11 additions and 5 deletions

View file

@ -41,6 +41,7 @@ public:
private:
MaybeLoaderError initialize();
static MaybeLoaderError synchronize(BigEndianInputBitStream& stream, size_t sample_index);
MaybeLoaderError synchronize();
MaybeLoaderError build_seek_table();
ErrorOr<MP3::Header, LoaderError> read_header();