SoundData:getBitDepth

Returns the number of bits taken up by each sample in the SoundData. Higher bit depths mean the sound is higher quality and takes up more space. This is usually 8 or 16.

bitDepth = SoundData:getBitDepth()

Arguments

None

Returns

NameTypeDescription
bitDepthnumberThe size of each sample, in bits.

See also