对象:stopRecording()

类型 函数
对象 录制
media.*
返回值
修订版 2024.3703 版本
关键字 stopRecording
另请参见 对象:startRecording()
media.playSound()

概览

停止录制音频。

语法

object:stopRecording()

示例

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

-- Sometime later
r:stopRecording()