Add initial implementation of stereo panning to the ma_engine API.

This currently only supports f32, but support for more formats will be
coming soon.
This commit is contained in:
David Reid
2020-05-31 23:54:29 +10:00
parent f4b0b271cd
commit 1c26893930
2 changed files with 82 additions and 9 deletions
+3 -2
View File
@@ -35,14 +35,15 @@ int main(int argc, char** argv)
}
ma_engine_sound_set_pitch(&engine, &sound1, 0.75f);
ma_engine_sound_set_pan(&engine, &sound1, -1.0f);
ma_engine_sound_set_looping(&engine, &sound1, MA_TRUE);
ma_engine_sound_start(&engine, &sound1);
result = ma_engine_play_sound(&engine, argv[1], NULL);
/*result = ma_engine_play_sound(&engine, argv[1], NULL);
if (result != MA_SUCCESS) {
printf("ma_engine_play_sound() failed with: %s\n", ma_result_description(result));
}
}*/
}