mwg API
    Preparing search index...

    Function isOpusEncodingAvailable

    • Whether this environment can encode Opus itself, which is whether a WebCodecs AudioEncoder exists. False in Node and in older WebViews, where the game injects another encoder (or leaves Opus out: AudioExport.formats() follows this).

      Returns boolean

      import { isOpusEncodingAvailable } from '@datamoc/mwg/audio';

      console.log(isOpusEncodingAvailable()); // true in a current Chrome