Difference between revisions of "SoundData:getBits"

m (1 revision: Importing from potato (again).)
m
 
(4 intermediate revisions by 4 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.
 
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=Returns the number of bits per sample.}}
 
{{#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