{{newin|[[0.9.0]]|090|type=function|text=It has been renamed from [[SoundData:getBits]]}}
Returns the number of bits per sample.
== Function ==
=== Synopsis ===
<source lang="lua">
bitdepth = SoundData:getBitDepth( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|bitdepth|Either 8, or 16.}}
== See Also ==
* [[parent::SoundData]]
[[Category:Functions]]
{{#set:Description=Returns the number of bits per sample.}}
== Other Languages ==
{{i18n|SoundData:getBitDepth}}