@@ -15,8 +15,8 @@ export enum AudioEngineMuteMode {
1515 */
1616export class AudioDeviceModule {
1717 /**
18- * Start audio playback
19- */
18+ * Start audio playback
19+ */
2020 static async startPlayout ( ) : Promise < { success : boolean } > {
2121 if ( Platform . OS === 'android' ) {
2222 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -26,8 +26,8 @@ export class AudioDeviceModule {
2626 }
2727
2828 /**
29- * Stop audio playback
30- */
29+ * Stop audio playback
30+ */
3131 static async stopPlayout ( ) : Promise < { success : boolean } > {
3232 if ( Platform . OS === 'android' ) {
3333 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -37,8 +37,8 @@ export class AudioDeviceModule {
3737 }
3838
3939 /**
40- * Start audio recording
41- */
40+ * Start audio recording
41+ */
4242 static async startRecording ( ) : Promise < { success : boolean } > {
4343 if ( Platform . OS === 'android' ) {
4444 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -48,8 +48,8 @@ export class AudioDeviceModule {
4848 }
4949
5050 /**
51- * Stop audio recording
52- */
51+ * Stop audio recording
52+ */
5353 static async stopRecording ( ) : Promise < { success : boolean } > {
5454 if ( Platform . OS === 'android' ) {
5555 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -59,8 +59,8 @@ export class AudioDeviceModule {
5959 }
6060
6161 /**
62- * Initialize and start local audio recording (calls initAndStartRecording)
63- */
62+ * Initialize and start local audio recording (calls initAndStartRecording)
63+ */
6464 static async startLocalRecording ( ) : Promise < { success : boolean } > {
6565 if ( Platform . OS === 'android' ) {
6666 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -70,8 +70,8 @@ export class AudioDeviceModule {
7070 }
7171
7272 /**
73- * Stop local audio recording
74- */
73+ * Stop local audio recording
74+ */
7575 static async stopLocalRecording ( ) : Promise < { success : boolean } > {
7676 if ( Platform . OS === 'android' ) {
7777 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -81,8 +81,8 @@ export class AudioDeviceModule {
8181 }
8282
8383 /**
84- * Mute or unmute the microphone
85- */
84+ * Mute or unmute the microphone
85+ */
8686 static async setMicrophoneMuted ( muted : boolean ) : Promise < { success : boolean ; muted : boolean } > {
8787 if ( Platform . OS === 'android' ) {
8888 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -92,8 +92,8 @@ export class AudioDeviceModule {
9292 }
9393
9494 /**
95- * Check if microphone is currently muted
96- */
95+ * Check if microphone is currently muted
96+ */
9797 static isMicrophoneMuted ( ) : boolean {
9898 if ( Platform . OS === 'android' ) {
9999 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -103,8 +103,8 @@ export class AudioDeviceModule {
103103 }
104104
105105 /**
106- * Enable or disable voice processing (requires engine restart)
107- */
106+ * Enable or disable voice processing (requires engine restart)
107+ */
108108 static async setVoiceProcessingEnabled ( enabled : boolean ) : Promise < { success : boolean ; enabled : boolean } > {
109109 if ( Platform . OS === 'android' ) {
110110 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -114,8 +114,8 @@ export class AudioDeviceModule {
114114 }
115115
116116 /**
117- * Check if voice processing is enabled
118- */
117+ * Check if voice processing is enabled
118+ */
119119 static isVoiceProcessingEnabled ( ) : boolean {
120120 if ( Platform . OS === 'android' ) {
121121 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -125,8 +125,8 @@ export class AudioDeviceModule {
125125 }
126126
127127 /**
128- * Temporarily bypass voice processing without restarting the engine
129- */
128+ * Temporarily bypass voice processing without restarting the engine
129+ */
130130 static setVoiceProcessingBypassed ( bypassed : boolean ) : void {
131131 if ( Platform . OS === 'android' ) {
132132 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -136,8 +136,8 @@ export class AudioDeviceModule {
136136 }
137137
138138 /**
139- * Check if voice processing is currently bypassed
140- */
139+ * Check if voice processing is currently bypassed
140+ */
141141 static isVoiceProcessingBypassed ( ) : boolean {
142142 if ( Platform . OS === 'android' ) {
143143 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -147,8 +147,8 @@ export class AudioDeviceModule {
147147 }
148148
149149 /**
150- * Enable or disable Automatic Gain Control (AGC)
151- */
150+ * Enable or disable Automatic Gain Control (AGC)
151+ */
152152 static setVoiceProcessingAGCEnabled ( enabled : boolean ) : { success : boolean ; enabled : boolean } {
153153 if ( Platform . OS === 'android' ) {
154154 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -158,8 +158,8 @@ export class AudioDeviceModule {
158158 }
159159
160160 /**
161- * Check if AGC is enabled
162- */
161+ * Check if AGC is enabled
162+ */
163163 static isVoiceProcessingAGCEnabled ( ) : boolean {
164164 if ( Platform . OS === 'android' ) {
165165 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -169,8 +169,8 @@ export class AudioDeviceModule {
169169 }
170170
171171 /**
172- * Check if audio is currently playing
173- */
172+ * Check if audio is currently playing
173+ */
174174 static isPlaying ( ) : boolean {
175175 if ( Platform . OS === 'android' ) {
176176 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
@@ -180,8 +180,8 @@ export class AudioDeviceModule {
180180 }
181181
182182 /**
183- * Check if audio is currently recording
184- */
183+ * Check if audio is currently recording
184+ */
185185 static isRecording ( ) : boolean {
186186 if ( Platform . OS === 'android' ) {
187187 throw new Error ( 'AudioDeviceModule is only available on iOS/macOS' ) ;
0 commit comments