Dude It works OMG
It's only sad that I need to use DevC++
I don't think there are any linker options in NotePad++
btw I need to ask this
Code:
" char fname[MAX_PATH] = {0};
printf("Enter the song filename (*.wav) : ");
fgets(fname,MAX_PATH,stdin);
fname[strlen(fname) -1] = 0; // remove newline.
"
Are these necessary? Because I can't understand this code (sorry still in stdio.h)
I want is like
Code:
PlaySound(fname,NULL, SND_FILENAME | SND_ASYNC | SND_NOWAIT);
*fname is the name of the file right?
but what is the exact codes for this like in the Name, should I just put it like
Code:
PlaySound((Song Name),NULL, SND_FILENAME | SND_ASYNC | SND_NOWAIT);
or there is more to it.
Also How can I loop the song so that it's continues until the end of the program
and
How can I stop it??
Dude you have been an amazing help Cheers bro