Lines Matching refs:Microphone

21 // Test case for Microphone ActionScript class
26 rcsid="Microphone.as";
29 // There was no Microphone class in SWF5 or lower
32 // test the Microphone class
33 check_equals(typeof(Microphone), 'function');
34 check_equals ( typeof(Microphone.prototype.setGain), 'function' );
35 check_equals ( typeof(Microphone.prototype.setRate), 'function' );
36 check_equals ( typeof(Microphone.prototype.setSilenceLevel), 'function' );
37 check_equals ( typeof(Microphone.prototype.setUseEchoSuppression), 'function' );
39 check(Microphone.prototype.hasOwnProperty("setGain"));
40 check(Microphone.prototype.hasOwnProperty("setRate"));
41 check(Microphone.prototype.hasOwnProperty("setSilenceLevel"));
42 check(Microphone.prototype.hasOwnProperty("setUseEchoSuppression"));
45 check(!Microphone.prototype.hasOwnProperty("get"));
46 check(!Microphone.prototype.hasOwnProperty("activityLevel"));
47 check(!Microphone.prototype.hasOwnProperty("gain"));
48 check(!Microphone.prototype.hasOwnProperty("index"));
49 check(!Microphone.prototype.hasOwnProperty("muted"));
50 check(!Microphone.prototype.hasOwnProperty("name"));
51 check(!Microphone.prototype.hasOwnProperty("names"));
52 check(!Microphone.prototype.hasOwnProperty("onActivity"));
53 check(!Microphone.prototype.hasOwnProperty("onStatus"));
54 check(!Microphone.prototype.hasOwnProperty("rate"));
55 check(!Microphone.prototype.hasOwnProperty("silenceLevel"));
56 check(!Microphone.prototype.hasOwnProperty("silenceTimeOut"));
57 check(!Microphone.prototype.hasOwnProperty("useEchoSuppression"));
59 f = new Microphone;
67 check(!Microphone.prototype.hasOwnProperty("get"));
68 check(!Microphone.prototype.hasOwnProperty("activityLevel"));
69 check(!Microphone.prototype.hasOwnProperty("gain"));
70 check(!Microphone.prototype.hasOwnProperty("index"));
71 check(!Microphone.prototype.hasOwnProperty("muted"));
72 check(!Microphone.prototype.hasOwnProperty("name"));
73 check(!Microphone.prototype.hasOwnProperty("names"));
74 check(!Microphone.prototype.hasOwnProperty("onActivity"));
75 check(!Microphone.prototype.hasOwnProperty("onStatus"));
76 check(!Microphone.prototype.hasOwnProperty("rate"));
77 check(!Microphone.prototype.hasOwnProperty("silenceLevel"));
78 check(!Microphone.prototype.hasOwnProperty("silenceTimeOut"));
79 check(!Microphone.prototype.hasOwnProperty("useEchoSuppression"));
82 check ( Microphone.hasOwnProperty("names"));
83 check_equals (typeof (Microphone.names), 'object');
85 // test the Microphone constuctor
86 var microphoneObj = Microphone.get();
89 // Microphone.get() adds these properties.
92 check(!Microphone.prototype.hasOwnProperty("get"));
93 check(Microphone.prototype.hasOwnProperty("activityLevel"));
94 check(Microphone.prototype.hasOwnProperty("gain"));
95 check(Microphone.prototype.hasOwnProperty("index"));
96 check(Microphone.prototype.hasOwnProperty("muted"));
97 check(Microphone.prototype.hasOwnProperty("name"));
98 check(Microphone.prototype.hasOwnProperty("rate"));
99 check(Microphone.prototype.hasOwnProperty("silenceLevel"));
100 check(Microphone.prototype.hasOwnProperty("useEchoSuppression"));
102 // test that Microphone.get() returns the same object.
103 xcheck_equals(microphoneObj, Microphone.get());
108 // test the Microphone::setGain method
111 // test the Microphone::setRate method
114 // test the Microphone::setSilenceLevel method
117 // test the Microphone::setUseEchoSuppression method
120 /// Microphone properties