Can anyone Please!!!!! help me in preparing a program to run music (wav files or more) in dos mode using the sound card
Printable View
Can anyone Please!!!!! help me in preparing a program to run music (wav files or more) in dos mode using the sound card
Use the PlaySound API:
PS: You must include windows.h and run in a Win32 Console!Code:PlaySound("sound.wav", NULL, SND_FILENAME | SND_ASYNC);
Just to remind you that you can run the console app under DOS!;)
Not if it's a Win32 Console! :D
Yeah, but they said DOS :)
You need to use direct hardware access so that lets you out of NT which means it's officially deprecated because XP won't let you do it either :(