Add support for volume smoothing to sounds.

Smoothing is disabled by default. To enable it, you must use
ma_sound_init_ex() and configure it via the volumeSmoothTimeInPCMFrames
member of ma_sound_config.

This commit also fixes a bug where ma_gainer is not properly applying
smoothing.
This commit is contained in:
David Reid
2023-04-07 17:31:20 +10:00
parent 9a7663496f
commit 23345b47e8
2 changed files with 104 additions and 22 deletions
+6
View File
@@ -1,3 +1,9 @@
v0.11.15 - TBD
==============
* Fix a bug in ma_gainer where smoothing isn't applied correctly thus resulting in glitching.
* Add support for smoothing volume changes of sounds with `ma_sound_set_volume()`.
v0.11.14 - 2023-03-29
=====================
* Fix some pedantic warnings when compiling with GCC.