Last active
March 19, 2025 15:25
-
-
Save tereshenkovav/778e17f7f689727318cca76bd174cb75 to your computer and use it in GitHub Desktop.
Вопроизведение звука WAV-файла в консоли без библиотек, только WinAPI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Windows.h> | |
| #include <mmsystem.h> | |
| #pragma comment(lib,"Winmm.lib") | |
| int main(int argc, char ** argv) | |
| { | |
| PlaySoundA(argv[1], NULL, SND_SYNC); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment