Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Draw This
($0.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-20-2009, 05:43 PM   #2 (permalink)
LiftTubeLogic
New Member
 
Join Date: Apr 2009
Posts: 7
LiftTubeLogic is on a distinguished road
Default

Quote:
Originally Posted by LiftTubeLogic View Post
I've added functionality to enable users to play iTunes music instead of my games default music. I used sound engine to play the music and then added code for the music player to take over and play iTunes music. My problem is that my current solution leaves a bug that causes the sound in my game to be disabled.

To put it succinctly, sound has become disabled when toggling between default music to iTunes music. It's probably because I tried some hacky crap that didn't work. I had trouble getting the default player to start up again after iTunes music was being used so I tried to fix the problem by using SoundEngine_Teardown() and SoundEngine_Initialize() to fix my problem. Though it did allow the music to be toggle properly it has disabled my music D:


It should be noted that I use both SoundEngine_StopBackgroundMusic, SoundEngine_UnloadBackgroundMusicTrack to stop the music and both SoundEngine_LoadBackgroundMusicTrack and SoundEngine_StartBackgroundMusic to start the normal default music. Probably not what most people would do but it doesn't work unless I use both.

Help would be greatly appreciated thank you.
Disregard figured it out. Just needed to reload the assets. Silly me.
LiftTubeLogic is offline   Reply With Quote
 

» Advertisements
» Online Users: 608
10 members and 598 guests
Afrinux, Bryan1, drviii, Hamad, iamwayne5, jemicha, jon01, nguyenhieu129, Rynow, ThistleCoast
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 174,549
Threads: 93,727
Posts: 401,266
Top Poster: BrianSlick (7,954)
Welcome to our newest member, fgreg2692han
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:52 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.