这是我的代码:
DemoAMain oMain;
char buf[1024];
PlaySound(TEXT("bgm.wav"), NULL, SND_FILENAME);
sprintf( buf, "My Demonstration Program : Size %d x %d", BASE_SCREEN_WIDTH, BASE_SCREEN_HEIGHT );
iResult = oMain.Initialise( buf, BASE_SCREEN_WIDTH, BASE_SCREEN_HEIGHT, "Cornerstone Regular.ttf", 24 );
iResult = oMain.MainLoop();
oMain.Deinitialise();
return iResult;
存在一个问题,只有当 PlaySound 播放完音乐后,程序才能继续运行。我应该怎么做才能让 PlaySound 同时运行以下代码?非常感谢。