Audio problem in Ipad retina

I’m developing and app specifically for the iPad but can’t sort out an audio problem. When i run the app on the simulator all the sounds play as expected but when i build the app and run it on the iPad i can’t get any sound to play. I’ve tried several file formats (wav,car,m4a,mp3) and sample rates but nothing works…

The ipad sound is working fine with all the other apps. Anyone experienced something similar?

I’m using the following code:

fireSound = audio.loadStream(“test.wav”)

fireChannel = audio.play( fireSound, {loops=-1 } )

–>> Eventually got it to work with a wav file…RESOLVED

I’ve justed also noted when I’ve deployed my latest version to iPad & iTouch to test that the sound for the iPad is not working.  Is there  a bug in the latest build.

I’m on: Version 2013.1149 (2013.6.22)

Are you getting any errors from the device’s console log?

Are you sure the filenames are all lower case and you reference them all lower case (including the extension.  If the names are mixed case, you have to reference them identical to their case on the filesystem).

Hi Rob,

No errors noticed in the concole in Xcode when I run it on the iPad (i.e. where I get no sound).  

Did notice this but probably not related:

   <Warning>: AppDelegate.mm: didFailToRegisterForRemoteNotificationsWithError: no valid ‘aps-environment’ entitlement string found for application

Example of sound files:   “media/sounds/click.mp3”.    Do have sound with capitals but I assume as long as I match the case this should be OK?  In any case they all work on simulator/iPhone etc (and I thought previously on iPad)

Anything else to check?   I did not the iPad itself does play sound when I jump across to iTunes music.

As long as you match the case, it should be fine.  MP3’s should be fine, but you might want to check the encoding settings, is it 44khz, 25khz, 11khz?  Some odd-bit-rates might be problematic.    I have to ask the dumb questions too.  Is your volume up?  Is the mute switch on the playback setting? 

The simulator is case insensitive, but it it works on other devices, it should work on the iPad.

did run another app to check the volume was working - will download another daily build and try again

I’ve justed also noted when I’ve deployed my latest version to iPad & iTouch to test that the sound for the iPad is not working.  Is there  a bug in the latest build.

I’m on: Version 2013.1149 (2013.6.22)

Are you getting any errors from the device’s console log?

Are you sure the filenames are all lower case and you reference them all lower case (including the extension.  If the names are mixed case, you have to reference them identical to their case on the filesystem).

Hi Rob,

No errors noticed in the concole in Xcode when I run it on the iPad (i.e. where I get no sound).  

Did notice this but probably not related:

   <Warning>: AppDelegate.mm: didFailToRegisterForRemoteNotificationsWithError: no valid ‘aps-environment’ entitlement string found for application

Example of sound files:   “media/sounds/click.mp3”.    Do have sound with capitals but I assume as long as I match the case this should be OK?  In any case they all work on simulator/iPhone etc (and I thought previously on iPad)

Anything else to check?   I did not the iPad itself does play sound when I jump across to iTunes music.

As long as you match the case, it should be fine.  MP3’s should be fine, but you might want to check the encoding settings, is it 44khz, 25khz, 11khz?  Some odd-bit-rates might be problematic.    I have to ask the dumb questions too.  Is your volume up?  Is the mute switch on the playback setting? 

The simulator is case insensitive, but it it works on other devices, it should work on the iPad.

did run another app to check the volume was working - will download another daily build and try again

Are you still having audio issues? I’ve got customer complaints, but can’t duplicate any issues on my end. Already had customer check to make sure it’s not the silly mute button…

sorry - forgot to report back - unfortunately (or fortunately) it was silly user error in this case re the manual mute button usage  :blink: 

Good to know. thx! Let me see what my customer’s source of issue may be…

 

Are you still having audio issues? I’ve got customer complaints, but can’t duplicate any issues on my end. Already had customer check to make sure it’s not the silly mute button…

sorry - forgot to report back - unfortunately (or fortunately) it was silly user error in this case re the manual mute button usage  :blink: 

Good to know. thx! Let me see what my customer’s source of issue may be…