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