object:getSampleRate()

Type Function
Object Recording
Library media.*
Return value Number
Revision 2017.3060
Keywords getSampleRate
See also object:setSampleRate()

Overview

Gets the current audio recording sample rate.

Syntax

recording:getSampleRate()

Example

r:setSampleRate( rate )  -- request a new sampling rate
local actualRate = r:getSampleRate()