Aac constructor

Aac(
  1. AudioFormat audioFormat
)

Implementation

/* ctor */ Aac(
  AudioFormat audioFormat,
) {
  this.audioFormat = audioFormat;
  switch (audioFormat) {
    case AudioFormat.adts:
      deprecatedCodec = Codec.aacADTS;
      break;
    case AudioFormat.mp4:
      deprecatedCodec = Codec.aacMP4;
      break;
    default:
      throw Exception('Bad Audio Format');
  }
}