Sound Question

Is there a way to send commands to a sound card from a console application in c++ or c? Or just manipualate sound period in a console application? Any examples would be great!

I am using Microsoft Visual Studio 6.0

Thanks
gwaltersiiAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
You can use any Windows multimedia API in a console application. You might want to use MessageBeep or PlaySound.
0
 
gwaltersiiAuthor Commented:
do you have some sample code to get me started? I'm a quick learner.. I just need a step in the right direction.
0
 
chensuCommented:
#include <mmsystem.h>

::PlaySound("test.wav", NULL, SND_FILENAME | SND_ASYNC);

// You need to link with winmm.lib
0
All Courses

From novice to tech pro — start learning today.