Sound:getFrameCount

Edit

Returns the number of frames in the Sound. A frame stores one sample for each channel.

frames = Sound:getFrameCount()

Arguments

None

Returns

NameTypeDescription
framesnumber The number of frames in the Sound.

Notes

For streams, this returns the number of frames in the stream's buffer.

See also