I am trying to play the sound FX in a separated thread and the game freeze in the thread call.
i am including <thread> and using in this way
Code: Select all
std::thread first(play);
Code: Select all
void play() {
MP3Player_PlayBuffer(beep_mp3, beep_mp3_size, NULL);
}
Thanks in advance,
Hudson Schumaker