android_encoder.dart 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. class AndroidEncoder {
  2. final _value;
  3. const AndroidEncoder._internal(this._value);
  4. toString() => 'AndroidEncoder.$_value';
  5. int get value => _value;
  6. static const DEFAULT = const AndroidEncoder._internal(0);
  7. /// AMR (Narrowband) audio codec
  8. static const AMR_NB = const AndroidEncoder._internal(1);
  9. /// AMR (Wideband) audio codec
  10. static const AMR_WB = const AndroidEncoder._internal(2);
  11. /// AAC Low Complexity (AAC-LC) audio codec
  12. static const AAC = const AndroidEncoder._internal(3);
  13. /// High Efficiency AAC (HE-AAC) audio codec
  14. static const HE_AAC = const AndroidEncoder._internal(4);
  15. /// Enhanced Low Delay AAC (AAC-ELD) audio codec
  16. static const AAC_ELD = const AndroidEncoder._internal(5);
  17. /// Enhanced Low Delay AAC (AAC-ELD) audio codec
  18. static const VORBIS = const AndroidEncoder._internal(6);
  19. static const OPUS = const AndroidEncoder._internal(7);
  20. }
  21. class AndroidAudioSource {
  22. final _value;
  23. const AndroidAudioSource._internal(this._value);
  24. toString() => 'AndroidAudioSource.$_value';
  25. int get value => _value;
  26. static const DEFAULT = const AndroidAudioSource._internal(0);
  27. static const MIC = const AndroidAudioSource._internal(1);
  28. static const VOICE_UPLINK = const AndroidAudioSource._internal(2);
  29. static const VOICE_DOWNLINK = const AndroidAudioSource._internal(3);
  30. static const CAMCORDER = const AndroidAudioSource._internal(4);
  31. static const VOICE_RECOGNITION = const AndroidAudioSource._internal(5);
  32. static const VOICE_COMMUNICATION = const AndroidAudioSource._internal(6);
  33. static const REMOTE_SUBMIX = const AndroidAudioSource._internal(7);
  34. static const UNPROCESSED = const AndroidAudioSource._internal(8);
  35. static const RADIO_TUNER = const AndroidAudioSource._internal(9);
  36. static const HOTWORD = const AndroidAudioSource._internal(10);
  37. }
  38. class AndroidOutputFormat {
  39. final _value;
  40. const AndroidOutputFormat._internal(this._value);
  41. toString() => 'AndroidOutputFormat.$_value';
  42. int get value => _value;
  43. static const DEFAULT = const AndroidOutputFormat._internal(0);
  44. static const THREE_GPP = const AndroidOutputFormat._internal(1);
  45. static const MPEG_4 = const AndroidOutputFormat._internal(2);
  46. static const AMR_NB = const AndroidOutputFormat._internal(3);
  47. static const AMR_WB = const AndroidOutputFormat._internal(4);
  48. static const AAC_ADTS = const AndroidOutputFormat._internal(6);
  49. static const OUTPUT_FORMAT_RTP_AVP = const AndroidOutputFormat._internal(7);
  50. static const MPEG_2_TS = const AndroidOutputFormat._internal(8);
  51. static const WEBM = const AndroidOutputFormat._internal(9);
  52. static const OGG = const AndroidOutputFormat._internal(11);
  53. }