object:stopRecording()

Type Function
Object Recording
Library media.*
Return value none
Revision 2017.3060
Keywords stopRecording
See also object:startRecording()
media.playSound()

Overview

Stops recording audio.

Syntax

object:stopRecording()

Example

local filePath = system.pathForFile( "newRecording.aif", system.DocumentsDirectory )
local r = media.newRecording( filePath )
r:startRecording()

-- Sometime later
r:stopRecording()