object:stopRecording()

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