Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: AudioType

[13:14] static extends: object

Helper for FXGL's AudioType enum (com.almasb.fxgl.audio.AudioType): MUSIC (long MediaPlayer-backed tracks) and SOUND (short AudioClip-backed effects). Used by AudioPlayer.loadAudio(type, url, isMobile).

Methods

  • get (string Name)

    Resolves an AudioType enum value by name.

    • @p Name is "MUSIC" or "SOUND".
    • @r An AussomJavaObject around the AudioType value.
  • values ()

    Returns AudioType[] containing every constant.

  • valueOf (string Name)

    Standard Enum.valueOf strict lookup.