Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case WM_CHAR:
- switch ((char)wParam)
- {
- case '1':
- //SuspendThread(hThrd2);
- //ExitThread(hThrd2);
- //TerminateThread(hThrd2, DLL_THREAD_DETACH);
- PlaySound(TEXT("F:\\Burn\\quynhlan\\aa.wav"), NULL, SND_LOOP | SND_ASYNC);
- IsPlaying = true;
- break;
- case '2':
- if (IsPlaying)
- {
- PlaySound(NULL, NULL, 0);
- IsPlaying=false;
- }
- break;
- default:
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement