Difference between revisions of "SourceType"

m (Added a bit more information about how to use static and stream.)
m
Line 9: Line 9:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.audio]]
 
* [[parent::love.audio]]
* [[Source]]
+
* [[parent::Source]]
  
 
[[Category:Enums]]
 
[[Category:Enums]]

Revision as of 03:06, 25 March 2018

Types of audio sources.

A good rule of thumb is to use stream for music files and static for all short sound effects. Basically, you want to avoid loading large files into memory at once.

Constants

static
Decode the entire sound at once.
stream
Stream the sound; decode it gradually.

See Also


Other Languages