Thread support on GameCube <gccore.h>
Posted: Fri May 14, 2021 1:03 am
Hi,
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
where play is a function
Any tips ?
Thanks in advance,
Hudson Schumaker
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