title: Audio Not Working on Corona SDK for iOS
body: <p>I am currently developing an app using Corona SDK which uses the audio API for sound effects and background music. The audio was working fine in the simulator and on Android, but when I tested it on iOS, no audio played.</p>
  
  <p>To check if it was a problem with my code, I tried the sample "AudioPlayer" app included in Corona SDK as an example. Again, the audio played fine on the simulator and on Android, but on the two iOS devices I tested (an iPad and an iPad Mini), no sound was heard. I double-checked the volume on the device and tried all of the available sound formats, but nothing helped. You can found the sample application in the  "Media" folder under Sample Code, but here's the key part that actually plays the sound:</p>
  
  <pre><code>--If we are trying to load a sound, then use loadSound
  if supportedAudio[ platform ].extensions[ audioFileSelected ] == loadTypes[ "sound" ].extensions[ audioExtensionSelected ] then
      --Load the audio file fully into memory
      audioLoaded = audio.loadSound( audioFiles[ audioFileSelected ] .. supportedAudio[ platform ].extensions[ audioExtensionSelected ] )
      --Play audio file
      audioHandle = audio.play( audioLoaded, { channel = 1, loops = audioLoops, onComplete = resetButtonState } )
  else
      --Load the audio file in chunks
      audioLoaded = audio.loadStream( audioFiles[ audioFileSelected ] .. supportedAudio[ platform ].extensions[ audioExtensionSelected ] )
      --Play the audio file
      audioHandle = audio.play( audioLoaded, { channel = 1, loops = audioLoops, onComplete = resetButtonState } )
  end
  </code></pre>
  
  <p>Is this a bug with Corona SDK and/or iOS, or am I doing something wrong? I couldn't find anybody else who seemed to be having a similar problem when I searched this on Google, though it seems like playing sound wouldn't be a very rare task. Since nobody else is having this problem as far as I can tell, I'm probably doing something wrong, but I honestly have no idea what it could be. Can anybody else reproduce this problem? Thank you in advance for your help!</p>
  
  <p><strong>Notes:</strong></p>
  
  <p>The iPad is running iOS version 5.1.1, the iPad Mini is running iOS version 6.1.2, and I am using the latest public release of Corona SDK (which is available for free as Corona SDK Starter). I also tried the previous public release of Corona SDK, but it made no difference, so if it is a regression it is not a recent one.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I just tried it on an iPod Touch (iOS version 6.1.3) and the sound is working fine. However, I still have absolutely no idea what is causing the problem on the other two devices. Anybody have any insights on what it could be?</p>