Vorbis constructor

Vorbis(
  1. AudioFormat audioFormat
)

Implementation

/* ctor */ Vorbis(
  AudioFormat audioFormat,
) {
  this.audioFormat = audioFormat;
  switch (audioFormat) {
    case AudioFormat.ogg:
      deprecatedCodec = Codec.vorbisOGG;
      break;
    case AudioFormat.webm:
      deprecatedCodec = Codec.vorbisWebM;
      break;
    default:
      throw Exception('Bad Audio Format');
  }
}