Game Development Community

iPod music within the game

by Hitesh Patel · in iTorque 2D · 01/27/2010 (5:53 pm) · 2 replies

When i start the game on the iphone the ipod music stops playing. I read the following thread www.torquepowered.com/community/forums/viewthread/100809 and applied all the changes mentioned but when I build in Xcode i get errors about not declaring in the scope. Has anyone else had this problem???

#1
01/29/2010 (12:51 pm)
I have resolved the errors by adding #include "AudioToolbox/AudioServices.h" at the top of audio.cc file. The build is successfull but even after adding the code mentioned in the above thread ipod music still stops playing when the game starts.
#2
02/01/2010 (6:11 am)
It all works fine now. Just had to clean all targets and rebuild the project.