Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "lipa.h"
- #include <windows.h>
- #include <mmsystem.h>
- #include <stdlib.h>
- #include <iostream>
- #include <stdio.h>
- #pragma comment(lib, "winmm.lib")
- #pragma warning(disable : 4996)
- using namespace std;
- MMRESULT waveOutSetVolume(
- HWAVEOUT hwo,
- DWORD dwVolume
- );
- int main()
- {
- waveOutSetVolume(0, (DWORD)0x80000000UL);
- PlaySound(TEXT("test.wav"), NULL, SND_FILENAME);
- waveOutSetVolume(0, (DWORD)0x00008000UL);
- PlaySound(TEXT("test.wav"), NULL, SND_FILENAME);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement