Discussion Forums  >  Uncategorized

Replies: 3    Views: 177

iPing
Aspiring developer
Profile
Posts: 27
Reg: Dec 07, 2011
Teramo
1,520
01/11/12 12:21 PM (14 years ago)

sounds on tab bar not working

I'm not sure why, but suddenly, after bt server update, sounds on tab bar don't work anymore. I've a 5 tabbed app with pop.mp3 as audio clip for each tab. I've downloaded source code, dragged plugin, dragged documents in their folder (pop.mp3 into bt_sounds) and it doesn't want to work. log says: myappname[27464:17603] myappname_appDelegate: playSoundEffect pop.mp3 myappname[27464:17603] myappname_appDelegate: playSoundInBundle:ERROR. This sound effect is not included in the list of available sounds: pop.mp3 But the file IS INCLUDED!!!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/11/12 01:25 PM (14 years ago)
One of two things is happening here: a) If you're using BT server (self hosted), none of the plugins support sound effects anymore. This also means the boxes on the tabs to configure sound effects are ignored. They probably shouldn't show up there but do for a few reasons. Ugh. b) You have the .mp3 file in the project's directory but not added to Xcode. It sounds to me like a) and not b). So, in this case, try this....after downloading your Xcode project, open your app delegate.m file. Scroll down to around line 849 and find the loadSoundEffects method. You'll see here a list of sound effects that are loaded when the app launches. These could be commented out. The idea is that the app will load the sound effects from the Xcode project (the sound effects you compiled in the project) and the sounds it loads come from this list. This means you'll need to uncomment the ones you are using, and / or add the pop.mp3 file to the list if it's not there. I think that one is included? Not sure. Re-compile, launch, bet it works ;-)
 
iPing
Aspiring developer
Profile
Posts: 27
Reg: Dec 07, 2011
Teramo
1,520
like
01/11/12 01:33 PM (14 years ago)
------SOLVED------ in app delegate.m found this: [self.soundEffectNames addObject:@pop.mp3]; uncommented and now IT WORKS! SO MANY THANKS DAVID!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/11/12 01:38 PM (14 years ago)
Whoo Hoo, just gotta know where to look sometimes ;-) Glad you're all set, keep up the good work.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.