melonjs
    Preparing search index...

    Function hasFormat

    • check if the given audio format is supported

      Parameters

      • codec:
            | "ogg"
            | "opus"
            | "mp3"
            | "mpeg"
            | "oga"
            | "wav"
            | "aac"
            | "caf"
            | "m4a"
            | "m4b"
            | "mp4"
            | "weba"
            | "webm"
            | "dolby"
            | "flac"

        the audio format to check for support

      Returns boolean

      return true if the given audio format is supported