ddiakopoulos / libnyquist

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

Break when extension is found in byte buffer #67

Closed SamVanheer closed 1 year ago

SamVanheer commented 1 year ago

This adds a check to NyquistIO::Load(AudioData*, const std::vector<uint8_t> &) to stop searching for extensions when one has been found.