mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:57:35 +00:00
LibAudio: Load WAV metadata
This is quite straightforward with our new RIFF infrastructure.
This commit is contained in:
parent
70970b2fa9
commit
9e496a96a6
4 changed files with 92 additions and 2 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <AK/Span.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibAudio/Loader.h>
|
||||
#include <LibAudio/RIFFTypes.h>
|
||||
|
||||
namespace Audio {
|
||||
|
||||
|
@ -46,6 +47,7 @@ private:
|
|||
MaybeLoaderError initialize();
|
||||
|
||||
MaybeLoaderError parse_header();
|
||||
MaybeLoaderError load_wav_info_block(Vector<RIFF::Chunk> info_chunks);
|
||||
|
||||
LoaderSamples samples_from_pcm_data(Bytes const& data, size_t samples_to_read) const;
|
||||
template<typename SampleReader>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue