I am utterly puzzled and would like to know why this happens.
I have two sound effect files (sound A & D), and they both play fine on Simulator. However, when I generate a device build, D plays but A doesn’t.
What’s strange is that A does play on device without any problem if D is not to be played on device. Meaning, if I comment out the line that plays D, I can hear A. But when I allow D to play, A no longer plays.
The thing is, A and D do not play at the same time. I press a button associated with D, and D plays. When I press a button associated with A, A does not play, or simply it gets muted (when I have both A & D uncommented in the code.) However, if I comment out the button action for D (meaning, D is bundled with the project but there’s no line of code in the project that allows the D to play), pressing a button for A plays A.
Both A and D are aac files, and they were generated exactly the same way (that is, converting wav files to aac file format via iTunes.)
With my new project, I only have four sound files (A, B, C & D) so far, and B & C are not affected. It’s some bizarre conflict that suddenly appeared after I added D. (I added files in the order of A, B, C then D to the project.)
Does anyone have any insight as to what might cause something like this to happen? Is avoiding the use of D my only solution (meaning, do I need to look for another sound file and hope it doesn’t conflict with A, B or C)…?
Something like this did not happen in my previous project where I had a couple dozen sound files. I just don’t understand why this is happening now.
I’d appreciate any and all help and insights regarding this. (I don’t think it has anything to do with the build, but just in case, I’m using daily build 827 on Mac.)
Edit: Here’s an additional info. In my project, D has to be played first before A would ever be triggered. In fact, D has to be played before A, B or C ever gets played. However, B and C play without any problem, while A gets muted. A doesn’t get muted when playing D is removed (commenting out) from the code.
Edit2: As an experiment, I edited the code so that in place of A, it would play B, and B does not get muted. It’s only A that gets muted when D is involved. What could cause something like this to happen?
Naomi
[import]uid: 67217 topic_id: 27040 reply_id: 327040[/import]