ddiakopoulos / libnyquist

:microphone: Cross platform C++11 library for decoding audio (mp3, wav, ogg, opus, flac, etc)
BSD 2-Clause "Simplified" License
535 stars 65 forks source link

Fix FLAC in-memory loading #62

Closed juliusikkala closed 2 years ago

juliusikkala commented 2 years ago

There were a couple of small bugs in the in-memory loading code for FlacDecoder, causing FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC on every FLAC file I tried to load. It works fine for me after these changes.

ddiakopoulos commented 2 years ago

Excellent! Appreciate the bugfix @juliusikkala!