iPhone simulator and problems in the function newRecording

Hello people of Corona SDK

I am developing a story for children, one of the features is voice recording. The story consists of 19 screens that reads the text and recorded.
The problem is in the Crown simulator does well, but when compiling for iPhone, just record the voice on the first screen.
What do you think is the problem?

This is the code I use to record:
if director: getparams (): sub (1, 6) == “Record” then
filePath = system.pathForFile local (“re00_0” … director: getparams (): sub (-1 )…". aif "system.DocumentsDirectory)
media.newRecording recording = (filePath)
recording: setSampleRate (44100)
recording: startRecording ()
recording: startTuner ()
print (“Record screen00”, filePath)
end

This is the code I use to play:
if director: getparams (): sub (1, 6) == “Record” then
element.sound [20] = audio.loadStream (“silencio.mp3”)
elseif director: getparams (): sub (1, 7) == “Print” then
– Here call audio
element.sound [20] = audio.loadSound (“re00_0” … director: getparams (): sub (-1 )…". aif "system.DocumentsDirectory)
print (element.sound [20])

elseif director: getparams () ~ = “Read” then
element.sound [1] = audio.loadStream (“sc00.mp3”)
end

I can help me
Hola gente de Corona SDK

Estoy desarrollando un cuento para niños, una de las funcionalidades es grabar voz. El cuento consta de 19 pantallas que se lee el texto y se grabada.
El problema es en el simulador de Corona lo hace bien, pero al compilar para iPad, solo graba la voz en la primera pantalla.
¿cual creén que sea el problema?

Este es el código que uso para grabar:
if director:getParams():sub(1, 6) == “Grabar” then
local filePath = system.pathForFile(“re00_0”…director:getParams():sub(-1)…".aif", system.DocumentsDirectory)
recording = media.newRecording(filePath)
recording:setSampleRate(44100)
recording:startRecording()
recording:startTuner()
print("Grabar screen00: ",filePath)
end

Este es el código que uso para reproducir:
if director:getParams():sub(1, 6) == “Grabar” then
element.sound[20] = audio.loadStream(“silencio.mp3”)
elseif director:getParams():sub(1, 7) == “Grabado” then
– Aqui llamo al audio
element.sound[20] = audio.loadSound(“re00_0”…director:getParams():sub(-1)…".aif", system.DocumentsDirectory)
print (element.sound[20])
elseif director:getParams() ~= “Leer” then
element.sound[1] = audio.loadStream(“sc00.mp3”)
end

Les agradeceré su ayuda. [import]uid: 56284 topic_id: 16239 reply_id: 316239[/import]