Discussion Forums  >  Uncategorized

Replies: 3    Views: 337

basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
05/27/11 03:16 PM (14 years ago)

quiz sound effect reward not playing (iOS)

I added an mp3 sound into the BT_Sound folder, then referenced it in the sound effect reward box, but when I got 20/20 in my quiz, I heard no sound – yes my iphone's volume was on full :-) the mp3 is 459k - could that be why? I can shorten it if need be, and lower the quality, but as it's embedded within the app (ie not referenced externally) I thought it would be ok.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/27/11 11:31 PM (14 years ago)
You're gonna be a quiz ninja before too long. There's a trick to using your own sound effects. We didn't do a very good job of documenting this, or anything for that matter. It's a three step process to use your own sounds. a) Enter the file name in the control panel (you did this) b) Add it to the Xcode project (you did this) c) Tell the application to load this sound (prepare it to play) when the app launches. You did not do this. To do this: a) In BT_Config > [yourAppName]_appDelegate.m file, find the loadSoundEffects method on line 854. You'll see where all the sound effects in the project are added to an array. Add your's to this list. Recompile. That should do it.
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
05/28/11 08:43 AM (14 years ago)
PERFECT! Now, to make this app exactly as I'd want it I still need to do a few things, and I wonder if they're possible: after getting a winning score, I want it to show the reward page while playing the mp3, then have the show scoreboard/try again/quit buttons come up. Also when you don't pass, I want the finished screen to come up, then the scoreboard/try again/quit buttons come up. All automatically. Is that possible? I don't mind getting my hands dirty with code, but am not very good with it. Also, is it possible to clear the scores before I submit this? It's got all my testing scores on it and I would rather they weren't there. THANKS!!!
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
06/07/13 06:36 AM (12 years ago)
I know this is an old thread, but I'm wondering about this part: a) In BT_Config > [yourAppName]_appDelegate.m file, find the loadSoundEffects method on line 854. You'll see where all the sound effects in the project are added to an array. Add your's to this list. Recompile. That should do it. For adding to the array, is all you need to do physically input the file name into a list that is already there?
 

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.