PlaySound(); only plays short sound files. What is the function for long sound files?
Printable View
PlaySound(); only plays short sound files. What is the function for long sound files?
I can't play songs period, anyone know how to??
#include <iostream>
#include <windows.h>
#include <mmsystem.h>
int main(void)
{
PlaySound("soundfilehere.wav", NULL, PND_ASYNC); // This plays the file in the backround
cout << "Yo!!" << endl;
Sleep(400);
return 0;
}
So this is death, eh ruf?
This is also a windows question.
same difference
No it isn't.
Thats why there is a board for C++ and a board for windows programming.
ok................how do you upload a sound file into a C++ program?
(the windows forum is dead and this is a windows/C++ function).
You guys want me to post it elsewhere because you don't like me. I've seen people post links to their games on the C++ forum, why won't they post it on the game programming forum??
just post your codes
codes can be used to whatever!
forget it man, no one wants to help me
Because you're a rude, stubborn a*shole
he did nothing wrong, just asked if there is way do play sound!
pode,
You are rather underinformed on the subject. He did, in fact, do something wrong, on the GD board.
this isn't the GD board and answer my question
ok man THIS is what he asked
anyone know how to upload long sound files into a program?
didn't he?
he didn't ask for a windows code right there!!