mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibAudio: Convert FlacLoader to use new Core::Stream APIs :^)
For this change to work "easily", Loader can't take const ByteBuffer's anymore, which is fine for now.
This commit is contained in:
parent
4f48a086b7
commit
8a92573732
7 changed files with 113 additions and 175 deletions
|
@ -11,7 +11,7 @@
|
|||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
||||
{
|
||||
auto wav_data = ByteBuffer::copy(data, size).release_value();
|
||||
auto wav = make<Audio::WavLoaderPlugin>(wav_data);
|
||||
auto wav = make<Audio::WavLoaderPlugin>(wav_data.bytes());
|
||||
|
||||
for (;;) {
|
||||
auto samples = wav->get_more_samples();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue