object:getSampleRate()

Type Function
Object Recording
Library media.*
Return value Number
Revision Current Public Release (2017.3068)
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()