Sound:getFrameCount

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

frames = Sound:getFrameCount()

Arguments

None

Returns

NameTypeDescription
framesnumberThe number of frames in the Sound.

Notes

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

See also