Add support for fading in to sound groups.

This commit is contained in:
David Reid
2020-08-16 16:57:53 +10:00
parent 1baf3e941a
commit 56dbcb529c
2 changed files with 16 additions and 1 deletions
+2 -1
View File
@@ -37,6 +37,7 @@ int main(int argc, char** argv)
//ma_engine_sound_group_set_pan(&engine, NULL, -1);
ma_engine_sound_group_set_pitch(&engine, NULL, 1.0f);
ma_engine_sound_group_set_fade_in(&engine, NULL, 4000);
/*ma_engine_sound_set_volume(&engine, &sound, 0.25f);*/
//ma_engine_sound_set_pitch(&engine, &sound, 2.0f);
@@ -58,7 +59,7 @@ int main(int argc, char** argv)
ma_engine_play_sound(&engine, argv[3], NULL);*/
#endif
#if 1
#if 0
float pitch = 1;
float pitchStep = 0.01f;
float pitchMin = 0.125f;