sound works fine in simulator but not on device?

hello,

the sounds in my app work fine in the simulator, but on the device they do not work at all. what could be the problem? the sounds are .wav format. [import]uid: 19836 topic_id: 9264 reply_id: 309264[/import]

I have same problem, works fine in Corona and Xcode simulator, but not on device. Am using the recommended .wav format in 16 bit mono little endian [import]uid: 3458 topic_id: 9264 reply_id: 33777[/import]

This may or may not help in this specific case but when I have previously had similar issues opening the sound file in Audacity and re-saving it has resolved the problem.

I also had an issue, although this was at least two builds ago (not daily) where extremely short sounds weren’t playing - I added a second or two of silence at the end of them and that fixed it.

It may or may not help in this case but figured it was worth the mention just in case.

Peach

PS - Audacity is free if you want to give it a go. [import]uid: 52491 topic_id: 9264 reply_id: 34216[/import]

For me it turned out that it was the recording feature that was preventing audio from playing.So this may not be what others are experiencing, although I saw another thread where someone else is seeing this issue. It would be great to know if it’s an iOS limitation or a Corona one.

Basically when recording, no audio can play, no matter whether you use media.playSound, or the new audio API, or the format of the audio. My solution was to stop recording, play audio, then resume recording. Not ideal, but a workaround.

Also noticed you can’t adjust the phone volume while recording either by pressing vol up/dn btns on the phone. [import]uid: 3458 topic_id: 9264 reply_id: 34256[/import]

With the current audio engine, you can’t do both at the same time. Someone of ansca explained it in a forum post. [import]uid: 51516 topic_id: 9264 reply_id: 34263[/import]