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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-20-2009, 02:45 PM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 7
Question SDK 3.0 iTunes - sound problems from toggling between default music and iTunes

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.
LiftTubeLogic is offline   Reply With Quote
Old 07-20-2009, 06:43 PM   #2 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 7
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
Reply

Bookmarks

Tags
3.0 sdk, itunes, problem, soundengine

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 256
19 members and 237 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, Desert Diva, HemiMG, iDifferent, jakerocheleau, JasonR, prchn4christ, Rudy, ryantcb, Speed, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:46 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0