Microphone.hx 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package flash.media;
  2. extern final class Microphone extends flash.events.EventDispatcher {
  3. @:flash.property var activityLevel(get,never) : Float;
  4. @:flash.property @:require(flash10) var codec(get,set) : SoundCodec;
  5. @:flash.property @:require(flash10_1) var enableVAD(get,set) : Bool;
  6. @:flash.property @:require(flash10) var encodeQuality(get,set) : Int;
  7. @:flash.property @:require(flash10_2) var enhancedOptions(get,set) : MicrophoneEnhancedOptions;
  8. @:flash.property @:require(flash10) var framesPerPacket(get,set) : Int;
  9. @:flash.property var gain(get,set) : Float;
  10. @:flash.property var index(get,never) : Int;
  11. @:flash.property var muted(get,never) : Bool;
  12. @:flash.property var name(get,never) : String;
  13. @:flash.property @:require(flash10_1) var noiseSuppressionLevel(get,set) : Int;
  14. @:flash.property var rate(get,set) : Int;
  15. @:flash.property var silenceLevel(get,never) : Float;
  16. @:flash.property var silenceTimeout(get,never) : Int;
  17. @:flash.property var soundTransform(get,set) : SoundTransform;
  18. @:flash.property var useEchoSuppression(get,never) : Bool;
  19. function new() : Void;
  20. private function get_activityLevel() : Float;
  21. private function get_codec() : SoundCodec;
  22. private function get_enableVAD() : Bool;
  23. private function get_encodeQuality() : Int;
  24. private function get_enhancedOptions() : MicrophoneEnhancedOptions;
  25. private function get_framesPerPacket() : Int;
  26. private function get_gain() : Float;
  27. private function get_index() : Int;
  28. private function get_muted() : Bool;
  29. private function get_name() : String;
  30. private function get_noiseSuppressionLevel() : Int;
  31. private function get_rate() : Int;
  32. private function get_silenceLevel() : Float;
  33. private function get_silenceTimeout() : Int;
  34. private function get_soundTransform() : SoundTransform;
  35. private function get_useEchoSuppression() : Bool;
  36. function setLoopBack(state : Bool = true) : Void;
  37. function setSilenceLevel(silenceLevel : Float, timeout : Int = -1) : Void;
  38. function setUseEchoSuppression(useEchoSuppression : Bool) : Void;
  39. private function set_codec(value : SoundCodec) : SoundCodec;
  40. private function set_enableVAD(value : Bool) : Bool;
  41. private function set_encodeQuality(value : Int) : Int;
  42. private function set_enhancedOptions(value : MicrophoneEnhancedOptions) : MicrophoneEnhancedOptions;
  43. private function set_framesPerPacket(value : Int) : Int;
  44. private function set_gain(value : Float) : Float;
  45. private function set_noiseSuppressionLevel(value : Int) : Int;
  46. private function set_rate(value : Int) : Int;
  47. private function set_soundTransform(value : SoundTransform) : SoundTransform;
  48. @:flash.property @:require(flash10_1) static var isSupported(get,never) : Bool;
  49. @:flash.property static var names(get,never) : Array<Dynamic>;
  50. @:require(flash10_2) static function getEnhancedMicrophone(index : Int = -1) : Microphone;
  51. static function getMicrophone(index : Int = -1) : Microphone;
  52. private static function get_isSupported() : Bool;
  53. private static function get_names() : Array<Dynamic>;
  54. }