Type Function Object Recording Library media.* Return value none Revision 2017.3060 Keywords stopRecording See also object:startRecording() media.playSound()
Stops recording audio.
object:stopRecording()
local filePath = system.pathForFile( "newRecording.aif", system.DocumentsDirectory ) local r = media.newRecording( filePath ) r:startRecording() -- Sometime later r:stopRecording()