Hello everyone,
would anybody know the syntax for the sound command in
Visual C++ and which header files to include?
Thanx
Hello everyone,
would anybody know the syntax for the sound command in
Visual C++ and which header files to include?
Thanx
Well, this depends on what you want to do.
If you want a simple way to play a WAV file (it should be a WAV of < 1-2 MB, because this command waits until it can load the whole file into memory) just use the WinAPI PlaySound().
I think this is defined in mmsystem.h
For some info on parameters, and alternatives to this (somewhat primitive but functional) way of playing WAVs, check out:
http://www.borg.com/~jglatt/tech/highaud.htm
This guy has a lot of useful info on the various ways to do sound and music in Windows.
thanks, but actually I just wanna use the sound where it plays a frequency through the pc speaker, any ideas?