Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include "lipa.h"
  2. #include <windows.h>
  3. #include <mmsystem.h>
  4. #include <stdlib.h>
  5. #include <iostream>
  6. #include <stdio.h>
  7. #pragma comment(lib, "winmm.lib")
  8. #pragma warning(disable : 4996)
  9.  
  10.  
  11. using namespace std;
  12.  
  13.  
  14.  
  15.  
  16. MMRESULT waveOutSetVolume(
  17. HWAVEOUT hwo,
  18. DWORD dwVolume
  19. );
  20.  
  21.  
  22. int main()
  23. {
  24. waveOutSetVolume(0, (DWORD)0x80000000UL);
  25. PlaySound(TEXT("test.wav"), NULL, SND_FILENAME);
  26. waveOutSetVolume(0, (DWORD)0x00008000UL);
  27. PlaySound(TEXT("test.wav"), NULL, SND_FILENAME);
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement