toAudioChannelTag method

AudioChannelTag toAudioChannelTag()

Implementation

AudioChannelTag toAudioChannelTag() {
  switch (this) {
    case 'L':
      return AudioChannelTag.l;
    case 'R':
      return AudioChannelTag.r;
    case 'C':
      return AudioChannelTag.c;
    case 'LFE':
      return AudioChannelTag.lfe;
    case 'LS':
      return AudioChannelTag.ls;
    case 'RS':
      return AudioChannelTag.rs;
    case 'LC':
      return AudioChannelTag.lc;
    case 'RC':
      return AudioChannelTag.rc;
    case 'CS':
      return AudioChannelTag.cs;
    case 'LSD':
      return AudioChannelTag.lsd;
    case 'RSD':
      return AudioChannelTag.rsd;
    case 'TCS':
      return AudioChannelTag.tcs;
    case 'VHL':
      return AudioChannelTag.vhl;
    case 'VHC':
      return AudioChannelTag.vhc;
    case 'VHR':
      return AudioChannelTag.vhr;
  }
  throw Exception('$this is not known in enum AudioChannelTag');
}