From 68e4e720c0f9699630f39ad724a058b3201afaa4 Mon Sep 17 00:00:00 2001
From: David Reid
+
++ma_sound_set_start_time_in_pcm_frames(&sound, ma_engine_get_time(&engine) + (ma_engine_get_sample_rate(&engine) * 2); +ma_sound_start(&sound); +
+ The third parameter of ma_sound_init_from_file() is a set of flags that control how the sound be loaded and a few options on which features should be enabled for that sound. By default, the sound is synchronously loaded fully into memory straight from the file system without any kind of @@ -2533,6 +2540,11 @@ ma_sound_set_start_time_in_pcm_frames(&sound, ma_engine_get_time(&engine ma_sound_set_stop_time_in_pcm_frames(&sound, ma_engine_get_time(&engine) + (ma_engine_get_sample_rate(&engine) * 2));
+Note that scheduling a start time still requires an explicit call to ma_sound_start() before +anything will play. +
++ The time is specified in global time which is controlled by the engine. You can get the engine's current time with ma_engine_get_time(). The engine's global time is incremented automatically as audio data is read, but it can be reset with ma_engine_set_time() in case it needs to be