lovr.audio.getSampleRate

Returns the sample rate used by the playback device. This can be changed using lovr.conf.

rate = lovr.audio.getSampleRate()

Arguments

None

Returns

NameTypeDescription
ratenumber The sample rate of the playback device, in Hz.

See also