ddiakopoulos / libnyquist

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

Break when extension is found in byte buffer #67

Closed SamVanheer closed 2 years ago

SamVanheer commented 2 years ago

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