Note that there are some explanatory texts on larger screens.

plurals
  1. POAudio doesn't sound in a few iOS devices
    primarykey
    data
    text
    <p>I have developed an app that plays audio files with some voices recordings. When I debug it I have no problems with it, when I download it from the AppStore it works perfectly, my friends use it and they haven't got any problem with the app, but a few people from all over the world have contacted me to tell me that the app doesn't sound. </p> <p>It is very strange because they tell me that the sound of the bell (mp3 44100Hz, mono, 128kbps) that plays first sounds but the voices (mp3 44100Hz, stereo, 96kbps) don't sound. The people that contact with me has different devices models and different versions of iOS 6.</p> <p>I use AVAudioPlayer to play the files and I think that it work well. </p> <p>Have you experienced the same problem?</p> <p>Thank you </p> <p><strong>UPDATE</strong></p> <p>This is the Localizable.strings that I have</p> <p><img src="https://i.stack.imgur.com/jmRMZ.png" alt="enter image description here"></p> <p>I load the file like this: </p> <pre><code>// NSString *fileLang = NSLocalizedString(aItem.fileName, nil); //more code ... thePlayerURL = [[NSBundle mainBundle] URLForResource:fileLang withExtension:@"mp3"]; //more code ... AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL: aItem.urlAudio error:&amp;error]; player.delegate = self; [player prepareToPlay]; </code></pre> <p>This is an example of the Localizable.strings with the file keys and values, by default the name of the key is the spanish version of the file:</p> <pre><code>//AUDIO NAMES "1_au_es" = "1_au_en"; "2_au_es" = "2_au_en"; "3_au_es" = "3_au_en"; "4_au_es" = "4_au_en"; "5_au_es" = "5_au_en"; "6_au_es" = "6_au_en"; "7_au_es" = "7_au_en"; "8_au_es" = "8_au_en"; "9_au_es" = "9_au_en"; "10_au_es" = "10_au_en"; "11_au_es" = "11_au_en"; "12_au_es" = "12_au_en"; "13_au_es" = "13_au_en"; "14_au_es" = "14_au_en"; "15_au_es" = "15_au_en"; "16_au_es" = "16_au_en"; "17_au_es" = "17_au_en"; "18_au_es" = "18_au_en"; "19_au_es" = "19_au_en"; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload