object:getSampleRate()

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