Discussion Forums  >  Uncategorized

Replies: 3    Views: 179

iPing
Aspiring developer
Profile
Posts: 27
Reg: Dec 07, 2011
Teramo
1,520
12/27/11 02:41 AM (14 years ago)

playSoundInBundle:ERROR. This sound effect is not included in the list of available sounds: pop.mp3 iOS BT Server 2.1.5

Hi! I've created a tab view app. I've selected pop.mp3 as sound for each tab. Downloaded source code, copied all folders, copied all stuff included pop.mp3 in BT_Sound. Pop.mp3 doesn't start. Log says: myappname_appDelegate:playSoundInBundle:ERROR. This sound effect is not included in the list of available sounds: pop.mp3 Am I wrong somewhere? Is BT_Sound the right place? It was working on BT server 2.1.4. No more on 2.1.5...
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
12/27/11 06:17 AM (14 years ago)
HI iPing You have to add you MP3 file in yourapp.appDelegate.m under SoundMethod. You see the are others mp3 added there.
 
iPing
Aspiring developer
Profile
Posts: 27
Reg: Dec 07, 2011
Teramo
1,520
like
12/27/11 09:05 AM (14 years ago)
has it been changed since 2.14? On 2.1.4 was enough to put mp3 file into BT_sound folder. Do I have to drag&drop the mp3 file into BT_Config or you mean inserting some code inside myapp.appdelegate.m? The file is the default one... I don't understand. it's already into the code: [self.soundEffectNames addObject:@pop.mp3]; under myapp.appdelegate.m I've found this: if([self.soundEffectNames containsObject:theFileName]){ int playerIndex = [self.soundEffectNames indexOfObject:theFileName]; //we already initialized a player for this sound. Find it, play it. AVAudioPlayer *tmpPlayer = (AVAudioPlayer *)[self.soundEffectPlayers objectAtIndex:playerIndex]; if(tmpPlayer){ [tmpPlayer play]; } }else{ [BT_debugger showIt:self:[NSString stringWithFormat:@playSoundInBundle:ERROR. This sound effect is not included in the list of available sounds: %@, theFileName]];
 
iPing
Aspiring developer
Profile
Posts: 27
Reg: Dec 07, 2011
Teramo
1,520
like
01/02/12 09:10 AM (14 years ago)
any idea why doesn't work anymore?
 

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.