Answer to Question #44462 in C++ for Noah

Question #44462
Greetings C++ Experts I am having trouble with adding music to my Video game that I have made with Cinder. It functions fantastic and I am very proud of myself even though I am a novice at Programming. I have tried adding my music file to the Assets folder and using the playsound function. Is there anything I can do and my music file is 17Mb I don't know if that means anything but I hope you guys and girls can help/assist me in completing my game. Also for some strange reason I can's use the main(){} function. It also does not function as a Terminal or Command Line its visual and has graphics where I have to use gl::draw() to write anything. Difficult but I have faith you can help me :)
Expert's answer
Do you use WindowsPlaySound function or audio functions from Cinder?
If you are using Windows PlaySound function, you need to link the winmm.lib library in your project settings, and #include windows.h and mmsystem.h in the header. Also try to use absolute path to check that you entered a correct path.
If you are using audio functions from Cinder, then you should view Audio samples from Cinder samples

The main function is in a library, and the program startes with avirtual function call on a static object. The program starts with CINDER_APP_BASIC function.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

New on Blog