Difference between revisions of "SoundData:getSampleCount"

(Created page with "{{newin|0.9.0|090|type=function}} Returns the sample count of the SoundData. == Function == === Synopsis === <source lang="lua"> count = SoundData:getSampleCount( ) </source>...")
 
(Note it's per-channel)
 
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function}}
 
{{newin|[[0.9.0]]|090|type=function}}
Returns the sample count of the SoundData.
+
Returns the number of samples per channel of the SoundData.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===

Latest revision as of 16:20, 6 July 2016

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Returns the number of samples per channel of the SoundData.

Function

Synopsis

count = SoundData:getSampleCount( )

Arguments

None.

Returns

number count
Total number of samples.

See Also

Other Languages