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