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_engine_get_volume missing #700

Closed tuket closed 1 year ago

tuket commented 1 year ago

I have learned about the existence of ma_engine_set_volume in the documentation. However, there is no corresponding getter for it. Is it worth adding it? My use case is having a slider in my game to control the master volume. I guess I could work around it by setting the volume to 1, and from then on use my own float variable to store to volume.

mackron commented 1 year ago

This is reasonable. I've added ma_engine_get_volume() to the dev branch. It'll be included in the next release.