1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

LibAudio: Make MP3LoaderPlugin::read_header() static

This will allow us to use the function when sniffing for an MP3 file to
enable consistent checks for valid frame headers.
This commit is contained in:
Zaggy1024 2023-08-25 23:04:05 -05:00 committed by Tim Flynn
parent e087d35cd8
commit 1847155b12
2 changed files with 21 additions and 21 deletions

View file

@ -43,9 +43,9 @@ private:
MaybeLoaderError initialize();
static MaybeLoaderError skip_id3(SeekableStream& stream);
static MaybeLoaderError synchronize(BigEndianInputBitStream& stream, size_t sample_index);
static ErrorOr<MP3::Header, LoaderError> read_header(BigEndianInputBitStream& stream, size_t sample_index);
MaybeLoaderError synchronize();
MaybeLoaderError build_seek_table();
ErrorOr<MP3::Header, LoaderError> read_header();
ErrorOr<MP3::MP3Frame, LoaderError> read_next_frame();
ErrorOr<MP3::MP3Frame, LoaderError> read_frame_data(MP3::Header const&);
MaybeLoaderError read_side_information(MP3::MP3Frame&);