dispose method
Releases the audio resources held by this sound and resets its state.
Sets the buffer to null
and state to LoadingState.none.
This should be called when the sound is no longer needed to free up
memory associated with the decoded audio data.
Implementation
dispose() {
buffer = null;
state = LoadingState.none;
}