dispose method

dynamic dispose()

Releases the audio resources held by this sound and resets its state.

Implementation

dispose() {
  bufferHandle?.dispose();
  bufferHandle = null;
  state = LoadingState.none;
}