mackron / miniaudio

Audio playback and capture library written in C, in a single source file.
https://miniaud.io
Other
4.07k stars 361 forks source link

ma_dr_* gated behind MA_IMPLEMENTATION #697

Closed parkovski closed 1 year ago

parkovski commented 1 year ago

If MA_IMPLEMENTATION is not defined (using as a header), ma_dr_wav, etc are not available. The headers should not be inside the #ifdef MA_IMPLEMENTATION section. Tried both master and dev branch, same issue occurs.

mackron commented 1 year ago

This is intended. ma_dr_wav, etc. are implementation details for ma_decoder. If you want do use dr_wav, etc., use them directly from the dr_libs repository: https://github.com/mackron/dr_libs. miniaudio and dr_libs should be useable side-by-side.