Hi there,
I have been playing around and found a strange problem when i tried to use the Music.Play(); in a practical situation.. after much confusion I found a strange problem and it happens even in he demo code in the tutorial section .. so I guess I am just not using it correctly?
I recorded the problem here do you can have a look
http://screencast.com/t/SLYFFtSfkeBasically this is the exact code form the tutorial... I have jus tremoved somne of it.. but I am not sure why this would make a difference...
Here is my
MySounds.cpp -
http://ideone.com/36yr1MySounds.h -
http://ideone.com/3HZOII call the class in main as "MySounds Sound;"
The plan is to add the audio to this class and use it to play things and stuff. I addedthe music to the constructor so it start as I declare the object I'll also add a few effect sounds that will always be live.
Anyway.. am i doing this all wrong? Why woudl i need a cin.get after the Music.Play() to make the sound come out?