Lines Matching refs:audioCapturer
170 let audioCapturer: audio.AudioCapturer | undefined = undefined;
206 audioCapturer = capturer;
207 if (audioCapturer !== undefined) {
208 … audioCapturer.on('markReach', 1000, (position: number) => { // 订阅markReach事件,当采集的帧数达到1000帧时触发回调
213 …audioCapturer.on('periodReach', 2000, (position: number) => { // 订阅periodReach事件,当采集的帧数每达到2000时触发回调
218 audioCapturer.on('readData', readDataCallback);
225 if (audioCapturer !== undefined) {
227 …if (stateGroup.indexOf(audioCapturer.state.valueOf()) === -1) { // 当且仅当状态为STATE_PREPARED、STATE_PAU…
231 audioCapturer.start((err: BusinessError) => {
243 if (audioCapturer !== undefined) {
245 …if (audioCapturer.state.valueOf() !== audio.AudioState.STATE_RUNNING && audioCapturer.state.valueO…
249 await audioCapturer.stop(); // 停止采集
250 if (audioCapturer.state.valueOf() === audio.AudioState.STATE_STOPPED) {
260 if (audioCapturer !== undefined) {
262 …if (audioCapturer.state.valueOf() === audio.AudioState.STATE_RELEASED || audioCapturer.state.value…
266 await audioCapturer.release(); // 释放资源
267 if (audioCapturer.state.valueOf() === audio.AudioState.STATE_RELEASED) {