The AssetType enum lists the core set of available asset types from the OpenFL command-line tools.
Variables
inlineread onlyMUSIC:AssetType = "MUSIC"
Audio assets, such as .ogg or .wav files
In previous versions of OpenFL, AssetType.MUSIC
was recommended
for long background music, but in current versions, both
AssetType.MUSIC
and AssetType.SOUND
behave similarly.
A future version may implement optimizations specific to each audio type again.
inlineread onlySOUND:AssetType = "SOUND"
Audio assets, such as .ogg or .wav files
In previous versions of OpenFL, AssetType.SOUND
was recommended
for short or repetitively used sounds, but in current versions, both
AssetType.MUSIC
and AssetType.SOUND
behave similarly.
A future version may implement optimizations specific to each audio type again.