VC++6.0win32 console program PlaySound can not play, beg master enlighten!!!

I'm in VC++6.0 according to the book and write a console application
#include<windows.h> 
#include<mmsystem.h>//The PlaySound function header file
#pragma comment(lib, "WINMM.LIB")//Link library, PlaySound function must use 
int main()
{ 
	PlaySound("E:\\19.wav",NULL,SND_LOOP);
	return 0;
}
Why it won't play.

Started by Larry at November 14, 2016 - 1:23 PM

SND_LOOP | SND_FILENAME

Posted by Chester at November 23, 2016 - 2:09 PM

Or not.

Posted by Larry at December 01, 2016 - 3:09 PM

SND_LOOP
Repeat play sound, must sign a use with SND_ASYNC.

Posted by Ashbur at December 14, 2016 - 3:48 PM

Because your program has quit, sound automatically closes.
In the return 0; preceded by system ("pause");.

Posted by Garfield at December 21, 2016 - 4:12 PM

Or not.

Posted by Larry at January 04, 2017 - 5:11 PM

The 19.wav file in the E: root directory is it right??

Posted by Marico at January 05, 2017 - 5:07 PM

A horn? Not mute. No volume is close to 0. Normal hearing. ...

Posted by Abelard at January 06, 2017 - 6:22 PM

Through verification, is the voice output. Check your computer sound output problem is it right?

Posted by Nicholas at January 14, 2017 - 5:35 PM