sampleTypeToInt function

int sampleTypeToInt(
  1. SampleType s
)

Implementation

int sampleTypeToInt(SampleType s) {
  switch (s) {
    case SampleType.none:
      return 0;
    case SampleType.mono:
      return 1;
    case SampleType.right:
      return 2;
    case SampleType.left:
      return 4;
    case SampleType.linked:
      return 8;
    case SampleType.romMono:
      return 0x8001;
    case SampleType.romRight:
      return 0x8002;
    case SampleType.romLeft:
      return 0x8004;
    case SampleType.romLinked:
      return 0x8008;
  }
}