More work on the new engine API.

* Initial work on infrastructure for spatialization, panning and
    pitch shifting.
  * Add ma_engine_sound_set_pitch()

Spatialization and panning is not yet implemented, but pitch shifting
should now be working.
This commit is contained in:
David Reid
2020-05-31 23:14:59 +10:00
parent 3a62d44959
commit f4b0b271cd
3 changed files with 732 additions and 25 deletions
+1
View File
@@ -34,6 +34,7 @@ int main(int argc, char** argv)
return (int)result;
}
ma_engine_sound_set_pitch(&engine, &sound1, 0.75f);
ma_engine_sound_set_looping(&engine, &sound1, MA_TRUE);
ma_engine_sound_start(&engine, &sound1);