toInt method

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case AudioStatus.stopped:
      return SDL_AudioStatus.SDL_AUDIO_STOPPED;
    case AudioStatus.playing:
      return SDL_AudioStatus.SDL_AUDIO_PLAYING;
    case AudioStatus.paused:
      return SDL_AudioStatus.SDL_AUDIO_PAUSED;
  }
}