ReleaseMode
Determines what happens to the player's resources (the buffered audio and the underlying native player) when playback finishes or is stopped, and therefore how quickly, and at what cost, the same audio can be played again.
Inherits: enum.Enum
Properties
LOOP- Automatically restarts playback from the beginning every time it completes, creating a continuous loop.RELEASE- Frees all resources once playback completes, as ifAudio.releasehad been called automatically.STOP- Stops playback when the audio completes but keeps all resources (the buffered audio and the native player) intact.
Properties
LOOPclass-attributeinstance-attribute
Automatically restarts playback from the beginning every time it completes, creating a continuous loop. All resources are kept buffered.
Best for audio that should repeat indefinitely, such as background music.
Note
Resources are never released automatically in this mode. To free them,
change the source or call Audio.release.