Sound:getSampleRate

Returns the sample rate of the Sound, in Hz. This is the number of frames that are played every second. It's usually a high number like 48000.

frequency = Sound:getSampleRate()

Arguments

None

Returns

NameTypeDescription
frequencynumberThe number of frames per second in the Sound.

See also