SHARE
TWEET

Playsound

a guest Apr 21st, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. case WM_CHAR:
  2.         switch ((char)wParam)
  3.         {
  4.         case '1':
  5.             //SuspendThread(hThrd2);
  6.             //ExitThread(hThrd2);
  7.             //TerminateThread(hThrd2, DLL_THREAD_DETACH);
  8.             PlaySound(TEXT("F:\\Burn\\quynhlan\\aa.wav"), NULL, SND_LOOP | SND_ASYNC);
  9.             IsPlaying = true;
  10.  
  11.             break;
  12.         case '2':
  13.             if (IsPlaying)
  14.             {
  15.                 PlaySound(NULL, NULL, 0);
  16.                 IsPlaying=false;
  17.             }
  18.             break;
  19.         default:
  20.             break;
  21.         }
RAW Paste Data
Top