AudioStream:getSampleRate

Returns the number of samples per second in the stream's sound data. This is usually a high number like 44100.

frequency = AudioStream:getSampleRate()

Arguments

None

Returns

NameTypeDescription
frequencynumberThe number of samples per second in the AudioStream.

See also