mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
2b81f75cca
The callback passed into `ma_context_enumerate_devices()` would previously return a boolean, with true telling miniaudio to continue enumeration, and false to abort. This got a bit confusing to read at times, so I've decided to make this more explicit. The new return type is an enum called `ma_device_enumeration_result`. Instead of returning true to continue enumeration, the new return value is `MA_DEVICE_ENUMERATION_CONTINUE`. Similarly, instead of returning false to abort enumeration, `MA_DEVICE_ENUMERATION_ABORT` should be returned instead.