Difference between revisions of "SoundData:getBits"

m (1 revision: Imported docs from potato.)
m
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
+
{{oldin|[[0.9.0]]|090|type=function|text=It has been renamed to [[SoundData:getBitDepth]]}}
 
+
Returns the number of bits per sample.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
bitSize = SoundData:getBits( )
+
bits = SoundData:getBits( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|number|bitSize|Either 8, or 16.}}
+
{{param|number|bits|Either 8, or 16.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::SoundData]]
 
* [[parent::SoundData]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Returns the number of bits per sample.}}
 +
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|SoundData:getBits}}

Latest revision as of 04:03, 19 July 2013

Removed in LÖVE 0.9.0
It has been renamed to SoundData:getBitDepth.

Returns the number of bits per sample.

Function

Synopsis

bits = SoundData:getBits( )

Arguments

None.

Returns

number bits
Either 8, or 16.

See Also


Other Languages