Audio works on simulator but not iPhone

After searching the forums, there have been several posts like this, and I’m still not getting sound on the device, iPhone (e.g., the sound is turned to max on the iPhone, the .caf audio file was converted to caff LEI16 format from a .wav file, I’m using the latest version (347) of Corona for Mac.) I know there’s something I’m doing wrong, but can’t figure it out, so I thought I’d check to see if there might be any other ideas out there that I should check. Thanks for any thoughts. [import]uid: 14481 topic_id: 9285 reply_id: 309285[/import]

I determined that it does work with in a pared-down program, so there must be something in my original program that is defeating it. I will narrow it down and then post the results. [import]uid: 14481 topic_id: 9285 reply_id: 33876[/import]

Well, that didn’t take long. It appears that you can’t record sound and play sound at the same time. Here is my simple code that worked before I added in the code at the top to start recording sounds.

As you can see below I tried using media and audio sounds and neither works when the recording is going on. If the recording:startRecording() line is commented out, it works just fine, but then part of the app is to capture sounds, including the event sound generated by the app.

Would anybody know if this might be a Corona bug, or if this is an iPhone limitation?

recording = media.newRecording()
recording:setSampleRate(44100)
recording:startTuner()
recording:startRecording() – if this line is commented out, then it all works

local popSound = media.newEventSound( “pop.caf” )
–local popSound = audio.loadSound( “pop.caf” )

function playSound( )
media.playEventSound( popSound )
– audio.play( popSound )
end

playSound() [import]uid: 14481 topic_id: 9285 reply_id: 33877[/import]

I have the same problem using an Android: it works all well on the emulator but it doesn’t work on then Android (a Nexus One). The sound is not saved.

So, It seems is not an iPhone limitation…

I need to save sound, any help will be welcome :wink:

Thanks in advance [import]uid: 14556 topic_id: 9285 reply_id: 37178[/import]

This is a limitation of Corona. We are looking into ways to remove this limitation. No ETA yet though, sorry! [import]uid: 6787 topic_id: 9285 reply_id: 37188[/import]

Have you a prevision about when it will be solved? There is an alternative to do something similar?

Thanks [import]uid: 14556 topic_id: 9285 reply_id: 37490[/import]