Hello.
Is there a way to play sound with audioEditorAPI.PlaySound() in such way that the current thread will be blocked till the playback is done?
Now I use construction like this
I need to play sounds in loop one after the other. What is the best way to accomplish this?
Thank you.
Is there a way to play sound with audioEditorAPI.PlaySound() in such way that the current thread will be blocked till the playback is done?
Now I use construction like this
Code Select
audioEditorAPI.PlaySound();
//Wait until playback finishes
while (audioEditorAPI.GetPlaybackStatus() != enumPlaybackStatus.PLAYBACK_STOPPED)
{
System.Threading.Thread.Sleep(200);
}
audioEditorAPI.LoadSoundFromMemory(sound, sound.Length);
audioEditorAPI.PlaySound();
I need to play sounds in loop one after the other. What is the best way to accomplish this?
Thank you.