Type Function Object Recording Library media.* Return value none Revision Release 2024.3703 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()