agora-electron-sdk 4.2.2-dev.4 → 4.2.2-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/js/Private/AgoraBase.js +139 -53
- package/js/Private/AgoraMediaBase.js +13 -7
- package/js/Private/IAgoraRtcEngine.js +11 -11
- package/js/Private/IAgoraRtcEngineEx.js +1 -1
- package/js/Private/IAgoraSpatialAudio.js +2 -2
- package/js/Private/impl/IAgoraMediaEngineImpl.js +12 -6
- package/js/Private/impl/IAgoraRtcEngineImpl.js +7 -7
- package/js/Private/internal/IrisApiEngine.js +13 -0
- package/js/Private/internal/MusicContentCenterInternal.js +3 -0
- package/js/Private/internal/RtcEngineExInternal.js +24 -7
- package/js/Private/ti/IAgoraRtcEngine-ti.js +2 -2
- package/js/Renderer/WebGLRenderer/index.js +19 -19
- package/js/Renderer/YUVCanvasRenderer/index.js +1 -1
- package/package.json +3 -3
- package/scripts/zipBuild.js +3 -1
- package/ts/Private/AgoraBase.ts +296 -133
- package/ts/Private/AgoraMediaBase.ts +68 -34
- package/ts/Private/AgoraMediaPlayerTypes.ts +8 -5
- package/ts/Private/IAgoraLog.ts +7 -3
- package/ts/Private/IAgoraMediaEngine.ts +76 -35
- package/ts/Private/IAgoraMediaPlayer.ts +126 -64
- package/ts/Private/IAgoraMediaPlayerSource.ts +3 -1
- package/ts/Private/IAgoraRtcEngine.ts +1325 -530
- package/ts/Private/IAgoraRtcEngineEx.ts +227 -94
- package/ts/Private/IAgoraSpatialAudio.ts +71 -36
- package/ts/Private/IAudioDeviceManager.ts +61 -31
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +12 -6
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +9 -11
- package/ts/Private/internal/IrisApiEngine.ts +14 -0
- package/ts/Private/internal/MusicContentCenterInternal.ts +4 -0
- package/ts/Private/internal/RtcEngineExInternal.ts +36 -14
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +2 -2
- package/ts/Renderer/WebGLRenderer/index.ts +26 -21
- package/ts/Renderer/YUVCanvasRenderer/index.ts +1 -1
- package/types/Private/AgoraBase.d.ts +298 -135
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +69 -35
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaPlayerTypes.d.ts +8 -5
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -1
- package/types/Private/IAgoraLog.d.ts +7 -3
- package/types/Private/IAgoraLog.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +76 -35
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +126 -64
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayerSource.d.ts +3 -1
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngine.d.ts +1326 -530
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +227 -94
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAgoraSpatialAudio.d.ts +71 -36
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +61 -31
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -1
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +2 -2
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +5 -5
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
- package/types/Private/internal/MusicContentCenterInternal.d.ts +1 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -1
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
- package/types/Renderer/WebGLRenderer/index.d.ts +1 -1
- package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAgoraRtcEngineEx.d.ts","sourceRoot":"","sources":["../../ts/Private/IAgoraRtcEngineEx.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAChD,OAAO,EACL,8BAA8B,EAC9B,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AACH,qBAAa,aAAa;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,8BAAsB,YAAa,SAAQ,UAAU;IACnD
|
|
1
|
+
{"version":3,"file":"IAgoraRtcEngineEx.d.ts","sourceRoot":"","sources":["../../ts/Private/IAgoraRtcEngineEx.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAChD,OAAO,EACL,8BAA8B,EAC9B,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,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AAM,EACd,MAAM,EAAE,qBAAqB,EAC7B,UAAU,EAAE,aAAa,GACxB,MAAM;IAET;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,cAAc,CACrB,UAAU,EAAE,aAAa,EACzB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACf,MAAM;IAET;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,4BAA4B,CAAC,UAAU,EAAE,aAAa,GAAG,MAAM;CACzE"}
|
|
@@ -50,20 +50,24 @@ export declare class SpatialAudioZone {
|
|
|
50
50
|
*/
|
|
51
51
|
upLength?: number;
|
|
52
52
|
/**
|
|
53
|
-
* The sound attenuation coefficient when users within the sound insulation area communicate with external users. The value range is [0,1]. The values are as follows:
|
|
53
|
+
* The sound attenuation coefficient when users within the sound insulation area communicate with external users. The value range is [0,1]. The values are as follows:
|
|
54
|
+
* 0: Broadcast mode, where the volume and timbre are not attenuated with distance, and the volume and timbre heard by local users do not change regardless of distance.
|
|
55
|
+
* (0,0.5): Weak attenuation mode, that is, the volume and timbre are only weakly attenuated during the propagation process, and the sound can travel farther than the real environment.
|
|
56
|
+
* 0.5: (Default) simulates the attenuation of the volume in the real environment; the effect is equivalent to not setting the audioAttenuation parameter.
|
|
57
|
+
* (0.5,1]: Strong attenuation mode (default value is 1), that is, the volume and timbre attenuate rapidly during propagation.
|
|
54
58
|
*/
|
|
55
59
|
audioAttenuation?: number;
|
|
56
60
|
}
|
|
57
61
|
/**
|
|
58
62
|
* This class contains some of the APIs in the ILocalSpatialAudioEngine class.
|
|
59
63
|
*
|
|
60
|
-
* The ILocalSpatialAudioEngine class inherits from IBaseSpatialAudioEngine
|
|
64
|
+
* The ILocalSpatialAudioEngine class inherits from IBaseSpatialAudioEngine.
|
|
61
65
|
*/
|
|
62
66
|
export declare abstract class IBaseSpatialAudioEngine {
|
|
63
67
|
/**
|
|
64
68
|
* Destroys IBaseSpatialAudioEngine.
|
|
65
69
|
*
|
|
66
|
-
* This method releases all resources under IBaseSpatialAudioEngine
|
|
70
|
+
* This method releases all resources under IBaseSpatialAudioEngine. When the user does not need to use the spatial audio effect, you can call this method to release resources for other operations. After calling this method, you can no longer use any of the APIs under IBaseSpatialAudioEngine. Call this method before the release method under IRtcEngine.
|
|
67
71
|
*/
|
|
68
72
|
abstract release(): void;
|
|
69
73
|
/**
|
|
@@ -74,7 +78,8 @@ export declare abstract class IBaseSpatialAudioEngine {
|
|
|
74
78
|
* @param maxCount The maximum number of streams that a user can receive within a specified audio reception range. The value of this parameter should be ≤ 16, and the default value is 10.
|
|
75
79
|
*
|
|
76
80
|
* @returns
|
|
77
|
-
* 0: Success.
|
|
81
|
+
* 0: Success.
|
|
82
|
+
* < 0: Failure.
|
|
78
83
|
*/
|
|
79
84
|
abstract setMaxAudioRecvCount(maxCount: number): number;
|
|
80
85
|
/**
|
|
@@ -85,7 +90,8 @@ export declare abstract class IBaseSpatialAudioEngine {
|
|
|
85
90
|
* @param range The maximum audio reception range. The unit is meters. The value of this parameter must be greater than 0, and the default value is 20.
|
|
86
91
|
*
|
|
87
92
|
* @returns
|
|
88
|
-
* 0: Success.
|
|
93
|
+
* 0: Success.
|
|
94
|
+
* < 0: Failure.
|
|
89
95
|
*/
|
|
90
96
|
abstract setAudioRecvRange(range: number): number;
|
|
91
97
|
/**
|
|
@@ -93,16 +99,17 @@ export declare abstract class IBaseSpatialAudioEngine {
|
|
|
93
99
|
*
|
|
94
100
|
* In a game engine, the unit of distance is customized, while in the Agora spatial audio algorithm, distance is measured in meters. By default, the SDK converts the game engine distance per unit to one meter. You can call this method to convert the game engine distance per unit to a specified number of meters.
|
|
95
101
|
*
|
|
96
|
-
* @param unit The number of meters that the game engine distance per unit is equal to. The value of this parameter must be greater than 0.00, and the default value is 1.00. For example, setting unit as 2.00 means the game engine distance per unit equals 2 meters.The larger the value is, the faster the sound heard by the local user attenuates when the remote user moves far away from the local user.
|
|
102
|
+
* @param unit The number of meters that the game engine distance per unit is equal to. The value of this parameter must be greater than 0.00, and the default value is 1.00. For example, setting unit as 2.00 means the game engine distance per unit equals 2 meters. The larger the value is, the faster the sound heard by the local user attenuates when the remote user moves far away from the local user.
|
|
97
103
|
*
|
|
98
104
|
* @returns
|
|
99
|
-
* 0: Success.
|
|
105
|
+
* 0: Success.
|
|
106
|
+
* < 0: Failure.
|
|
100
107
|
*/
|
|
101
108
|
abstract setDistanceUnit(unit: number): number;
|
|
102
109
|
/**
|
|
103
110
|
* Updates the spatial position of the local user.
|
|
104
111
|
*
|
|
105
|
-
* Under the ILocalSpatialAudioEngine class, this method needs to be used with updateRemotePosition
|
|
112
|
+
* Under the ILocalSpatialAudioEngine class, this method needs to be used with updateRemotePosition. The SDK calculates the relative position between the local and remote users according to this method and the parameter settings in updateRemotePosition, and then calculates the user's spatial audio effect parameters.
|
|
106
113
|
*
|
|
107
114
|
* @param position The coordinates in the world coordinate system. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
108
115
|
* @param axisForward The unit vector of the x axis in the coordinate system. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
@@ -110,7 +117,8 @@ export declare abstract class IBaseSpatialAudioEngine {
|
|
|
110
117
|
* @param axisUp The unit vector of the z axis in the coordinate system. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
111
118
|
*
|
|
112
119
|
* @returns
|
|
113
|
-
* 0: Success.
|
|
120
|
+
* 0: Success.
|
|
121
|
+
* < 0: Failure.
|
|
114
122
|
*/
|
|
115
123
|
abstract updateSelfPosition(position: number[], axisForward: number[], axisRight: number[], axisUp: number[]): number;
|
|
116
124
|
/**
|
|
@@ -126,7 +134,8 @@ export declare abstract class IBaseSpatialAudioEngine {
|
|
|
126
134
|
* @param positionInfo The spatial position of the media player. See RemoteVoicePositionInfo.
|
|
127
135
|
*
|
|
128
136
|
* @returns
|
|
129
|
-
* 0: Success.
|
|
137
|
+
* 0: Success.
|
|
138
|
+
* < 0: Failure.
|
|
130
139
|
*/
|
|
131
140
|
abstract updatePlayerPositionInfo(playerId: number, positionInfo: RemoteVoicePositionInfo): number;
|
|
132
141
|
/**
|
|
@@ -136,86 +145,110 @@ export declare abstract class IBaseSpatialAudioEngine {
|
|
|
136
145
|
/**
|
|
137
146
|
* Stops or resumes publishing the local audio stream.
|
|
138
147
|
*
|
|
139
|
-
* This method does not affect any ongoing audio recording, because it does not disable the audio capture device.
|
|
148
|
+
* This method does not affect any ongoing audio recording, because it does not disable the audio capture device.
|
|
149
|
+
* Call this method after joinChannel.
|
|
150
|
+
* When using the spatial audio effect, if you need to set whether to stop subscribing to the audio stream of a specified user, Agora recommends calling this method instead of the muteLocalAudioStream method in IRtcEngine.
|
|
151
|
+
* A successful call of this method triggers the onUserMuteAudio and onRemoteAudioStateChanged callbacks on the remote client.
|
|
140
152
|
*
|
|
141
|
-
* @param mute Whether to stop publishing the local audio stream:true: Stop publishing the local audio stream.false: Publish the local audio stream.
|
|
153
|
+
* @param mute Whether to stop publishing the local audio stream: true : Stop publishing the local audio stream. false : Publish the local audio stream.
|
|
142
154
|
*
|
|
143
155
|
* @returns
|
|
144
|
-
* 0: Success.
|
|
156
|
+
* 0: Success.
|
|
157
|
+
* < 0: Failure.
|
|
145
158
|
*/
|
|
146
159
|
abstract muteLocalAudioStream(mute: boolean): number;
|
|
147
160
|
/**
|
|
148
161
|
* Stops or resumes subscribing to the audio streams of all remote users.
|
|
149
162
|
*
|
|
150
|
-
* After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including all subsequent users.
|
|
163
|
+
* After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including all subsequent users.
|
|
164
|
+
* Call this method after joinChannel.
|
|
165
|
+
* When using the spatial audio effect, if you need to set whether to stop subscribing to the audio streams of all remote users, Agora recommends calling this method instead of the muteAllRemoteAudioStreams method in IRtcEngine.
|
|
166
|
+
* After calling this method, you need to call updateSelfPosition and updateRemotePosition to update the spatial location of the local user and the remote user; otherwise, the settings in this method do not take effect.
|
|
151
167
|
*
|
|
152
|
-
* @param mute Whether to stop subscribing to the audio streams of all remote users:true: Stop subscribing to the audio streams of all remote users.false: Subscribe to the audio streams of all remote users.
|
|
168
|
+
* @param mute Whether to stop subscribing to the audio streams of all remote users: true : Stop subscribing to the audio streams of all remote users. false : Subscribe to the audio streams of all remote users.
|
|
153
169
|
*
|
|
154
170
|
* @returns
|
|
155
|
-
* 0: Success.
|
|
171
|
+
* 0: Success.
|
|
172
|
+
* < 0: Failure.
|
|
156
173
|
*/
|
|
157
174
|
abstract muteAllRemoteAudioStreams(mute: boolean): number;
|
|
158
175
|
/**
|
|
159
176
|
* Sets the sound insulation area.
|
|
160
177
|
*
|
|
161
|
-
* In virtual interactive scenarios, you can use this method to set the sound insulation area and sound attenuation coefficient. When the sound source (which can be the user or the media player) and the listener belong to the inside and outside of the sound insulation area, they can experience the attenuation effect of sound similar to the real environment when it encounters a building partition.
|
|
178
|
+
* In virtual interactive scenarios, you can use this method to set the sound insulation area and sound attenuation coefficient. When the sound source (which can be the user or the media player) and the listener belong to the inside and outside of the sound insulation area, they can experience the attenuation effect of sound similar to the real environment when it encounters a building partition.
|
|
179
|
+
* When the sound source and the listener belong to the inside and outside of the sound insulation area, the sound attenuation effect is determined by the sound attenuation coefficient in SpatialAudioZone.
|
|
180
|
+
* If the user or media player is in the same sound insulation area, it is not affected by SpatialAudioZone, and the sound attenuation effect is determined by the attenuation parameter in setPlayerAttenuation or setRemoteAudioAttenuation. If you do not call setPlayerAttenuation or setRemoteAudioAttenuation, the default sound attenuation coefficient of the SDK is 0.5, which simulates the attenuation of the sound in the real environment.
|
|
181
|
+
* If the sound source and the receiver belong to two sound insulation areas, the receiver cannot hear the sound source. If this method is called multiple times, the last sound insulation area set takes effect.
|
|
162
182
|
*
|
|
163
|
-
* @param zones Sound insulation area settings. See SpatialAudioZone.
|
|
183
|
+
* @param zones Sound insulation area settings. See SpatialAudioZone. On the Windows platform, it is necessary to ensure that the number of members in the zones array is equal to the value of zoneCount; otherwise, it may cause a crash.
|
|
164
184
|
* @param zoneCount The number of sound insulation areas.
|
|
165
185
|
*
|
|
166
186
|
* @returns
|
|
167
|
-
* 0: Success.
|
|
187
|
+
* 0: Success.
|
|
188
|
+
* < 0: Failure.
|
|
168
189
|
*/
|
|
169
190
|
abstract setZones(zones: SpatialAudioZone[], zoneCount: number): number;
|
|
170
191
|
/**
|
|
171
192
|
* Sets the sound attenuation properties of the media player.
|
|
172
193
|
*
|
|
173
194
|
* @param playerId The ID of the media player.
|
|
174
|
-
* @param attenuation The sound attenuation coefficient of the remote user or media player. The value range is [0,1]. The values are as follows:
|
|
175
|
-
*
|
|
195
|
+
* @param attenuation The sound attenuation coefficient of the remote user or media player. The value range is [0,1]. The values are as follows:
|
|
196
|
+
* 0: Broadcast mode, where the volume and timbre are not attenuated with distance, and the volume and timbre heard by local users do not change regardless of distance.
|
|
197
|
+
* (0,0.5): Weak attenuation mode, that is, the volume and timbre are only weakly attenuated during the propagation process, and the sound can travel farther than the real environment.
|
|
198
|
+
* 0.5: (Default) simulates the attenuation of the volume in the real environment; the effect is equivalent to not setting the speaker_attenuation parameter.
|
|
199
|
+
* (0.5,1]: Strong attenuation mode, that is, the volume and timbre attenuate rapidly during the propagation process.
|
|
200
|
+
* @param forceSet Whether to force the sound attenuation effect of the media player: true : Force attenuation to set the attenuation of the media player. At this time, the attenuation coefficient of the sound insulation are set in the audioAttenuation in the SpatialAudioZone does not take effect for the media player. false : Do not force attenuation to set the sound attenuation effect of the media player, as shown in the following two cases.
|
|
201
|
+
* If the sound source and listener are inside and outside the sound isolation area, the sound attenuation effect is determined by the audioAttenuation in SpatialAudioZone.
|
|
202
|
+
* If the sound source and the listener are in the same sound insulation area or outside the same sound insulation area, the sound attenuation effect is determined by attenuation in this method.
|
|
176
203
|
*
|
|
177
204
|
* @returns
|
|
178
|
-
* 0: Success.
|
|
205
|
+
* 0: Success.
|
|
206
|
+
* < 0: Failure.
|
|
179
207
|
*/
|
|
180
208
|
abstract setPlayerAttenuation(playerId: number, attenuation: number, forceSet: boolean): number;
|
|
181
209
|
/**
|
|
182
210
|
* Stops or resumes subscribing to the audio stream of a specified user.
|
|
183
211
|
*
|
|
184
|
-
* Call this method after joinChannel
|
|
212
|
+
* Call this method after joinChannel.
|
|
213
|
+
* When using the spatial audio effect, if you need to set whether to stop subscribing to the audio stream of a specified user, Agora recommends calling this method instead of the muteRemoteAudioStream method in IRtcEngine.
|
|
185
214
|
*
|
|
186
215
|
* @param uid The user ID. This parameter must be the same as the user ID passed in when the user joined the channel.
|
|
187
|
-
* @param mute Whether to subscribe to the specified remote user's audio stream.true: Stop subscribing to the audio stream of the specified user.false: (Default) Subscribe to the audio stream of the specified user. The SDK decides whether to subscribe according to the distance between the local user and the remote user.
|
|
216
|
+
* @param mute Whether to subscribe to the specified remote user's audio stream. true : Stop subscribing to the audio stream of the specified user. false : (Default) Subscribe to the audio stream of the specified user. The SDK decides whether to subscribe according to the distance between the local user and the remote user.
|
|
188
217
|
*
|
|
189
218
|
* @returns
|
|
190
|
-
* 0: Success.
|
|
219
|
+
* 0: Success.
|
|
220
|
+
* < 0: Failure.
|
|
191
221
|
*/
|
|
192
222
|
abstract muteRemoteAudioStream(uid: number, mute: boolean): number;
|
|
193
223
|
}
|
|
194
224
|
/**
|
|
195
225
|
* This class calculates user positions through the SDK to implement the spatial audio effect.
|
|
196
226
|
*
|
|
197
|
-
* This class inherits from IBaseSpatialAudioEngine
|
|
227
|
+
* This class inherits from IBaseSpatialAudioEngine. Before calling other APIs in this class, you need to call the initialize method to initialize this class.
|
|
198
228
|
*/
|
|
199
229
|
export declare abstract class ILocalSpatialAudioEngine extends IBaseSpatialAudioEngine {
|
|
200
230
|
/**
|
|
201
231
|
* Initializes ILocalSpatialAudioEngine.
|
|
202
232
|
*
|
|
203
|
-
* Before calling other methods of the ILocalSpatialAudioEngine class, you need to call this method to initialize ILocalSpatialAudioEngine
|
|
233
|
+
* Before calling other methods of the ILocalSpatialAudioEngine class, you need to call this method to initialize ILocalSpatialAudioEngine.
|
|
234
|
+
* The SDK supports creating only one ILocalSpatialAudioEngine instance for an app.
|
|
204
235
|
*
|
|
205
236
|
* @returns
|
|
206
|
-
* 0: Success.
|
|
237
|
+
* 0: Success.
|
|
238
|
+
* < 0: Failure.
|
|
207
239
|
*/
|
|
208
240
|
abstract initialize(): number;
|
|
209
241
|
/**
|
|
210
242
|
* Updates the spatial position of the specified remote user.
|
|
211
243
|
*
|
|
212
|
-
* After successfully calling this method, the SDK calculates the spatial audio parameters based on the relative position of the local and remote user. Call this method after joinChannel
|
|
244
|
+
* After successfully calling this method, the SDK calculates the spatial audio parameters based on the relative position of the local and remote user. Call this method after joinChannel.
|
|
213
245
|
*
|
|
214
246
|
* @param uid The user ID. This parameter must be the same as the user ID passed in when the user joined the channel.
|
|
215
247
|
* @param posInfo The spatial position of the remote user. See RemoteVoicePositionInfo.
|
|
216
248
|
*
|
|
217
249
|
* @returns
|
|
218
|
-
* 0: Success.
|
|
250
|
+
* 0: Success.
|
|
251
|
+
* < 0: Failure.
|
|
219
252
|
*/
|
|
220
253
|
abstract updateRemotePosition(uid: number, posInfo: RemoteVoicePositionInfo): number;
|
|
221
254
|
/**
|
|
@@ -230,7 +263,8 @@ export declare abstract class ILocalSpatialAudioEngine extends IBaseSpatialAudio
|
|
|
230
263
|
* @param uid The user ID. This parameter must be the same as the user ID passed in when the user joined the channel.
|
|
231
264
|
*
|
|
232
265
|
* @returns
|
|
233
|
-
* 0: Success.
|
|
266
|
+
* 0: Success.
|
|
267
|
+
* < 0: Failure.
|
|
234
268
|
*/
|
|
235
269
|
abstract removeRemotePosition(uid: number): number;
|
|
236
270
|
/**
|
|
@@ -243,7 +277,8 @@ export declare abstract class ILocalSpatialAudioEngine extends IBaseSpatialAudio
|
|
|
243
277
|
* After successfully calling this method, the local user no longer hears any remote users. After leaving the channel, to avoid wasting resources, you can also call this method to delete the spatial positions of all remote users.
|
|
244
278
|
*
|
|
245
279
|
* @returns
|
|
246
|
-
* 0: Success.
|
|
280
|
+
* 0: Success.
|
|
281
|
+
* < 0: Failure.
|
|
247
282
|
*/
|
|
248
283
|
abstract clearRemotePositions(): number;
|
|
249
284
|
/**
|
|
@@ -259,13 +294,13 @@ export declare abstract class ILocalSpatialAudioEngine extends IBaseSpatialAudio
|
|
|
259
294
|
* (0,0.5): Weak attenuation mode, that is, the volume and timbre are only weakly attenuated during the propagation process, and the sound can travel farther than the real environment.
|
|
260
295
|
* 0.5: (Default) simulates the attenuation of the volume in the real environment; the effect is equivalent to not setting the speaker_attenuation parameter.
|
|
261
296
|
* (0.5,1]: Strong attenuation mode, that is, the volume and timbre attenuate rapidly during the propagation process.
|
|
262
|
-
* @param forceSet Whether to force the user's sound attenuation effect:true: Force attenuation to set the sound attenuation of the user. At this time, the attenuation coefficient of the sound insulation area set in the audioAttenuation of the SpatialAudioZone does not take effect for the user.
|
|
297
|
+
* @param forceSet Whether to force the user's sound attenuation effect: true : Force attenuation to set the sound attenuation of the user. At this time, the attenuation coefficient of the sound insulation area set in the audioAttenuation of the SpatialAudioZone does not take effect for the user.
|
|
263
298
|
* If the sound source and listener are inside and outside the sound isolation area, the sound attenuation effect is determined by the audioAttenuation in SpatialAudioZone.
|
|
264
|
-
* If the sound source and the listener are in the same sound insulation area or outside the same sound insulation area, the sound attenuation effect is determined by attenuation in this method.
|
|
265
|
-
* false: Do not force attenuation to set the user's sound attenuation effect, as shown in the following two cases.
|
|
299
|
+
* If the sound source and the listener are in the same sound insulation area or outside the same sound insulation area, the sound attenuation effect is determined by attenuation in this method. false : Do not force attenuation to set the user's sound attenuation effect, as shown in the following two cases.
|
|
266
300
|
*
|
|
267
301
|
* @returns
|
|
268
|
-
* 0: Success.
|
|
302
|
+
* 0: Success.
|
|
303
|
+
* < 0: Failure.
|
|
269
304
|
*/
|
|
270
305
|
abstract setRemoteAudioAttenuation(uid: number, attenuation: number, forceSet: boolean): number;
|
|
271
306
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAgoraSpatialAudio.d.ts","sourceRoot":"","sources":["../../ts/Private/IAgoraSpatialAudio.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,qBAAa,uBAAuB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB
|
|
1
|
+
{"version":3,"file":"IAgoraSpatialAudio.d.ts","sourceRoot":"","sources":["../../ts/Private/IAgoraSpatialAudio.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,qBAAa,uBAAuB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG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,sBAAsB,CAAC,UAAU,EAAE,aAAa,GAAG,MAAM;IAElE;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,yBAAyB,CAChC,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,OAAO,GAChB,MAAM;CACV"}
|
|
@@ -17,14 +17,16 @@ export declare abstract class IAudioDeviceManager {
|
|
|
17
17
|
* Enumerates the audio playback devices.
|
|
18
18
|
*
|
|
19
19
|
* @returns
|
|
20
|
-
* Success: Returns an AudioDeviceInfo array, which includes all the audio playback devices.
|
|
20
|
+
* Success: Returns an AudioDeviceInfo array, which includes all the audio playback devices.
|
|
21
|
+
* Failure: An empty array.
|
|
21
22
|
*/
|
|
22
23
|
abstract enumeratePlaybackDevices(): AudioDeviceInfo[];
|
|
23
24
|
/**
|
|
24
25
|
* Enumerates the audio capture devices.
|
|
25
26
|
*
|
|
26
27
|
* @returns
|
|
27
|
-
* Success: An AudioDeviceInfo array, which includes all the audio capture devices.
|
|
28
|
+
* Success: An AudioDeviceInfo array, which includes all the audio capture devices.
|
|
29
|
+
* Failure: An empty array.
|
|
28
30
|
*/
|
|
29
31
|
abstract enumerateRecordingDevices(): AudioDeviceInfo[];
|
|
30
32
|
/**
|
|
@@ -32,10 +34,11 @@ export declare abstract class IAudioDeviceManager {
|
|
|
32
34
|
*
|
|
33
35
|
* You can call this method to change the audio route currently being used, but this does not change the default audio route. For example, if the default audio route is speaker 1, you call this method to set the audio route as speaker 2 before joinging a channel and then start a device test, the SDK conducts device test on speaker 2. After the device test is completed and you join a channel, the SDK still uses speaker 1, the default audio route.
|
|
34
36
|
*
|
|
35
|
-
* @param deviceId The ID of the specified audio playback device. You can get the device ID by calling enumeratePlaybackDevices. Connecting or disconnecting the audio device does not change the value of deviceId.The maximum length is MaxDeviceIdLengthType.
|
|
37
|
+
* @param deviceId The ID of the specified audio playback device. You can get the device ID by calling enumeratePlaybackDevices. Connecting or disconnecting the audio device does not change the value of deviceId. The maximum length is MaxDeviceIdLengthType.
|
|
36
38
|
*
|
|
37
39
|
* @returns
|
|
38
|
-
* 0: Success.
|
|
40
|
+
* 0: Success.
|
|
41
|
+
* < 0: Failure.
|
|
39
42
|
*/
|
|
40
43
|
abstract setPlaybackDevice(deviceId: string): number;
|
|
41
44
|
/**
|
|
@@ -65,10 +68,11 @@ export declare abstract class IAudioDeviceManager {
|
|
|
65
68
|
*
|
|
66
69
|
* You can call this method to change the audio route currently being used, but this does not change the default audio route. For example, if the default audio route is microphone, you call this method to set the audio route as bluetooth earphones before joinging a channel and then start a device test, the SDK conducts device test on the bluetooth earphones. After the device test is completed and you join a channel, the SDK still uses the microphone for audio capturing.
|
|
67
70
|
*
|
|
68
|
-
* @param deviceId The ID of the audio capture device. You can get the Device ID by calling enumerateRecordingDevices. Connecting or disconnecting the audio device does not change the value of deviceId.The maximum length is MaxDeviceIdLengthType.
|
|
71
|
+
* @param deviceId The ID of the audio capture device. You can get the Device ID by calling enumerateRecordingDevices. Connecting or disconnecting the audio device does not change the value of deviceId. The maximum length is MaxDeviceIdLengthType.
|
|
69
72
|
*
|
|
70
73
|
* @returns
|
|
71
|
-
* 0: Success.
|
|
74
|
+
* 0: Success.
|
|
75
|
+
* < 0: Failure.
|
|
72
76
|
*/
|
|
73
77
|
abstract setRecordingDevice(deviceId: string): number;
|
|
74
78
|
/**
|
|
@@ -93,7 +97,8 @@ export declare abstract class IAudioDeviceManager {
|
|
|
93
97
|
* @param volume The volume of the audio recording device. The value range is [0,255]. 0 means no sound, 255 means maximum volume.
|
|
94
98
|
*
|
|
95
99
|
* @returns
|
|
96
|
-
* 0: Success.
|
|
100
|
+
* 0: Success.
|
|
101
|
+
* < 0: Failure.
|
|
97
102
|
*/
|
|
98
103
|
abstract setRecordingDeviceVolume(volume: number): number;
|
|
99
104
|
/**
|
|
@@ -103,12 +108,16 @@ export declare abstract class IAudioDeviceManager {
|
|
|
103
108
|
/**
|
|
104
109
|
* Sets the loopback device.
|
|
105
110
|
*
|
|
106
|
-
* The SDK uses the current playback device as the loopback device by default. If you want to specify another audio device as the loopback device, call this method, and set deviceId to the loopback device you want to specify. You can call this method to change the audio route currently being used, but this does not change the default audio route. For example, if the default audio route is microphone, you call this method to set the audio route as a sound card before joinging a channel and then start a device test, the SDK conducts device test on the sound card. After the device test is completed and you join a channel, the SDK still uses the microphone for audio capturing. This method is for Windows and macOS only. The scenarios where this method is applicable are as follows: Use app A to play music through a Bluetooth headset; when using app B for a video conference, play through the speakers.
|
|
111
|
+
* The SDK uses the current playback device as the loopback device by default. If you want to specify another audio device as the loopback device, call this method, and set deviceId to the loopback device you want to specify. You can call this method to change the audio route currently being used, but this does not change the default audio route. For example, if the default audio route is microphone, you call this method to set the audio route as a sound card before joinging a channel and then start a device test, the SDK conducts device test on the sound card. After the device test is completed and you join a channel, the SDK still uses the microphone for audio capturing. This method is for Windows and macOS only. The scenarios where this method is applicable are as follows: Use app A to play music through a Bluetooth headset; when using app B for a video conference, play through the speakers.
|
|
112
|
+
* If the loopback device is set as the Bluetooth headset, the SDK publishes the music in app A to the remote end.
|
|
113
|
+
* If the loopback device is set as the speaker, the SDK does not publish the music in app A to the remote end.
|
|
114
|
+
* If you set the loopback device as the Bluetooth headset, and then use a wired headset to play the music in app A, you need to call this method again, set the loopback device as the wired headset, and the SDK continues to publish the music in app A to remote end.
|
|
107
115
|
*
|
|
108
|
-
* @param deviceId Specifies the loopback device of the SDK. You can get the device ID by calling enumeratePlaybackDevices. Connecting or disconnecting the audio device does not change the value of deviceId.The maximum length is MaxDeviceIdLengthType.
|
|
116
|
+
* @param deviceId Specifies the loopback device of the SDK. You can get the device ID by calling enumeratePlaybackDevices. Connecting or disconnecting the audio device does not change the value of deviceId. The maximum length is MaxDeviceIdLengthType.
|
|
109
117
|
*
|
|
110
118
|
* @returns
|
|
111
|
-
* 0: Success.
|
|
119
|
+
* 0: Success.
|
|
120
|
+
* < 0: Failure.
|
|
112
121
|
*/
|
|
113
122
|
abstract setLoopbackDevice(deviceId: string): number;
|
|
114
123
|
/**
|
|
@@ -139,79 +148,99 @@ export declare abstract class IAudioDeviceManager {
|
|
|
139
148
|
/**
|
|
140
149
|
* Starts the audio playback device test.
|
|
141
150
|
*
|
|
142
|
-
* This method tests whether the audio playback device works properly. Once a user starts the test, the SDK plays an audio file specified by the user. If the user can hear the audio, the playback device works properly. After calling this method, the SDK triggers the onAudioVolumeIndication callback every 100 ms, reporting uid = 1 and the volume information of the playback device.
|
|
151
|
+
* This method tests whether the audio playback device works properly. Once a user starts the test, the SDK plays an audio file specified by the user. If the user can hear the audio, the playback device works properly. After calling this method, the SDK triggers the onAudioVolumeIndication callback every 100 ms, reporting uid = 1 and the volume information of the playback device.
|
|
152
|
+
* Ensure that you call this method before joining a channel.
|
|
143
153
|
*
|
|
144
|
-
* @param testAudioFilePath The path of the audio file. The data format is string in UTF-8.
|
|
154
|
+
* @param testAudioFilePath The path of the audio file. The data format is string in UTF-8.
|
|
155
|
+
* Supported file formats: wav, mp3, m4a, and aac.
|
|
156
|
+
* Supported file sample rates: 8000, 16000, 32000, 44100, and 48000 Hz.
|
|
145
157
|
*
|
|
146
158
|
* @returns
|
|
147
|
-
* 0: Success.
|
|
159
|
+
* 0: Success.
|
|
160
|
+
* < 0: Failure.
|
|
148
161
|
*/
|
|
149
162
|
abstract startPlaybackDeviceTest(testAudioFilePath: string): number;
|
|
150
163
|
/**
|
|
151
164
|
* Stops the audio playback device test.
|
|
152
165
|
*
|
|
153
|
-
* This method stops the audio playback device test. You must call this method to stop the test after calling the startPlaybackDeviceTest method.
|
|
166
|
+
* This method stops the audio playback device test. You must call this method to stop the test after calling the startPlaybackDeviceTest method.
|
|
167
|
+
* Ensure that you call this method before joining a channel.
|
|
154
168
|
*
|
|
155
169
|
* @returns
|
|
156
|
-
* 0: Success.
|
|
170
|
+
* 0: Success.
|
|
171
|
+
* < 0: Failure.
|
|
157
172
|
*/
|
|
158
173
|
abstract stopPlaybackDeviceTest(): number;
|
|
159
174
|
/**
|
|
160
175
|
* Starts the audio capture device test.
|
|
161
176
|
*
|
|
162
|
-
* This method tests whether the audio capture device works properly. After calling this method, the SDK triggers the onAudioVolumeIndication callback at the time interval set in this method, which reports uid = 0 and the volume information of the capturing device.
|
|
177
|
+
* This method tests whether the audio capture device works properly. After calling this method, the SDK triggers the onAudioVolumeIndication callback at the time interval set in this method, which reports uid = 0 and the volume information of the capturing device.
|
|
178
|
+
* Ensure that you call this method before joining a channel.
|
|
163
179
|
*
|
|
164
180
|
* @param indicationInterval The time interval (ms) at which the SDK triggers the onAudioVolumeIndication callback. Agora recommends setting a value greater than 200 ms. This value must not be less than 10 ms; otherwise, you can not receive the onAudioVolumeIndication callback.
|
|
165
181
|
*
|
|
166
182
|
* @returns
|
|
167
|
-
* 0: Success.
|
|
183
|
+
* 0: Success.
|
|
184
|
+
* < 0: Failure.
|
|
168
185
|
*/
|
|
169
186
|
abstract startRecordingDeviceTest(indicationInterval: number): number;
|
|
170
187
|
/**
|
|
171
188
|
* Stops the audio capture device test.
|
|
172
189
|
*
|
|
173
|
-
* This method stops the audio capture device test. You must call this method to stop the test after calling the startRecordingDeviceTest method.
|
|
190
|
+
* This method stops the audio capture device test. You must call this method to stop the test after calling the startRecordingDeviceTest method.
|
|
191
|
+
* Ensure that you call this method before joining a channel.
|
|
174
192
|
*
|
|
175
193
|
* @returns
|
|
176
|
-
* 0: Success.
|
|
194
|
+
* 0: Success.
|
|
195
|
+
* < 0: Failure.
|
|
177
196
|
*/
|
|
178
197
|
abstract stopRecordingDeviceTest(): number;
|
|
179
198
|
/**
|
|
180
199
|
* Starts an audio device loopback test.
|
|
181
200
|
*
|
|
182
|
-
* This method tests whether the local audio capture device and playback device are working properly. After starting the test, the audio capture device records the local audio, and the audio playback device plays the captured audio. The SDK triggers two independent onAudioVolumeIndication callbacks at the time interval set in this method, which reports the volume information of the capture device (
|
|
201
|
+
* This method tests whether the local audio capture device and playback device are working properly. After starting the test, the audio capture device records the local audio, and the audio playback device plays the captured audio. The SDK triggers two independent onAudioVolumeIndication callbacks at the time interval set in this method, which reports the volume information of the capture device (uid = 0) and the volume information of the playback device (uid = 1) respectively.
|
|
202
|
+
* You can call this method either before or after joining a channel.
|
|
203
|
+
* This method only takes effect when called by the host.
|
|
204
|
+
* This method tests local audio devices and does not report the network conditions.
|
|
205
|
+
* When you finished testing, call stopAudioDeviceLoopbackTest to stop the audio device loopback test.
|
|
183
206
|
*
|
|
184
207
|
* @param indicationInterval The time interval (ms) at which the SDK triggers the onAudioVolumeIndication callback. Agora recommends setting a value greater than 200 ms. This value must not be less than 10 ms; otherwise, you can not receive the onAudioVolumeIndication callback.
|
|
185
208
|
*
|
|
186
209
|
* @returns
|
|
187
|
-
* 0: Success.
|
|
210
|
+
* 0: Success.
|
|
211
|
+
* < 0: Failure.
|
|
188
212
|
*/
|
|
189
213
|
abstract startAudioDeviceLoopbackTest(indicationInterval: number): number;
|
|
190
214
|
/**
|
|
191
215
|
* Stops the audio device loopback test.
|
|
192
216
|
*
|
|
193
|
-
* You can call this method either before or after joining a channel.
|
|
217
|
+
* You can call this method either before or after joining a channel.
|
|
218
|
+
* This method only takes effect when called by the host.
|
|
219
|
+
* Ensure that you call this method to stop the loopback test after calling the startAudioDeviceLoopbackTest method.
|
|
194
220
|
*
|
|
195
221
|
* @returns
|
|
196
|
-
* 0: Success.
|
|
222
|
+
* 0: Success.
|
|
223
|
+
* < 0: Failure.
|
|
197
224
|
*/
|
|
198
225
|
abstract stopAudioDeviceLoopbackTest(): number;
|
|
199
226
|
/**
|
|
200
227
|
* Sets the audio playback device used by the SDK to follow the system default audio playback device.
|
|
201
228
|
*
|
|
202
|
-
* @param enable Whether to follow the system default audio playback device:true: Follow the system default audio playback device. The SDK immediately switches the audio playback device when the system default audio playback device changes.false: Do not follow the system default audio playback device. The SDK switches the audio playback device to the system default audio playback device only when the currently used audio playback device is disconnected.
|
|
229
|
+
* @param enable Whether to follow the system default audio playback device: true : Follow the system default audio playback device. The SDK immediately switches the audio playback device when the system default audio playback device changes. false : Do not follow the system default audio playback device. The SDK switches the audio playback device to the system default audio playback device only when the currently used audio playback device is disconnected.
|
|
203
230
|
*
|
|
204
231
|
* @returns
|
|
205
|
-
* 0: Success.
|
|
232
|
+
* 0: Success.
|
|
233
|
+
* < 0: Failure.
|
|
206
234
|
*/
|
|
207
235
|
abstract followSystemPlaybackDevice(enable: boolean): number;
|
|
208
236
|
/**
|
|
209
237
|
* Sets the audio recording device used by the SDK to follow the system default audio recording device.
|
|
210
238
|
*
|
|
211
|
-
* @param enable Whether to follow the system default audio recording device:true: Follow the system default audio playback device. The SDK immediately switches the audio recording device when the system default audio recording device changes.false: Do not follow the system default audio playback device. The SDK switches the audio recording device to the system default audio recording device only when the currently used audio recording device is disconnected.
|
|
239
|
+
* @param enable Whether to follow the system default audio recording device: true : Follow the system default audio playback device. The SDK immediately switches the audio recording device when the system default audio recording device changes. false : Do not follow the system default audio playback device. The SDK switches the audio recording device to the system default audio recording device only when the currently used audio recording device is disconnected.
|
|
212
240
|
*
|
|
213
241
|
* @returns
|
|
214
|
-
* 0: Success.
|
|
242
|
+
* 0: Success.
|
|
243
|
+
* < 0: Failure.
|
|
215
244
|
*/
|
|
216
245
|
abstract followSystemRecordingDevice(enable: boolean): number;
|
|
217
246
|
/**
|
|
@@ -219,10 +248,11 @@ export declare abstract class IAudioDeviceManager {
|
|
|
219
248
|
*
|
|
220
249
|
* This method is for Windows and macOS only.
|
|
221
250
|
*
|
|
222
|
-
* @param enable Whether to follow the system default audio playback device:true: Follow the system default audio playback device. When the default playback device of the system is changed, the SDK immediately switches to the loopback device.false: Do not follow the system default audio playback device. The SDK switches the audio loopback device to the system default audio playback device only when the current audio playback device is disconnected.
|
|
251
|
+
* @param enable Whether to follow the system default audio playback device: true : Follow the system default audio playback device. When the default playback device of the system is changed, the SDK immediately switches to the loopback device. false : Do not follow the system default audio playback device. The SDK switches the audio loopback device to the system default audio playback device only when the current audio playback device is disconnected.
|
|
223
252
|
*
|
|
224
253
|
* @returns
|
|
225
|
-
* 0: Success.
|
|
254
|
+
* 0: Success.
|
|
255
|
+
* < 0: Failure.
|
|
226
256
|
*/
|
|
227
257
|
abstract followSystemLoopbackDevice(enable: boolean): number;
|
|
228
258
|
/**
|
|
@@ -235,7 +265,7 @@ export declare abstract class IAudioDeviceManager {
|
|
|
235
265
|
* This method is for Windows and macOS only.
|
|
236
266
|
*
|
|
237
267
|
* @returns
|
|
238
|
-
* The details about the default audio playback device. See AudioDeviceInfo
|
|
268
|
+
* The details about the default audio playback device. See AudioDeviceInfo.
|
|
239
269
|
*/
|
|
240
270
|
abstract getPlaybackDefaultDevice(): AudioDeviceInfo;
|
|
241
271
|
/**
|
|
@@ -244,7 +274,7 @@ export declare abstract class IAudioDeviceManager {
|
|
|
244
274
|
* This method is for Windows and macOS only.
|
|
245
275
|
*
|
|
246
276
|
* @returns
|
|
247
|
-
* The details about the default audio capture device. See AudioDeviceInfo
|
|
277
|
+
* The details about the default audio capture device. See AudioDeviceInfo.
|
|
248
278
|
*/
|
|
249
279
|
abstract getRecordingDefaultDevice(): AudioDeviceInfo;
|
|
250
280
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAudioDeviceManager.d.ts","sourceRoot":"","sources":["../../ts/Private/IAudioDeviceManager.ts"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;GAEG;AACH,oBAAY,qBAAqB;IAC/B;;OAEG;IACH,iBAAiB,MAAM;CACxB;AAED;;GAEG;AACH,8BAAsB,mBAAmB;IACvC
|
|
1
|
+
{"version":3,"file":"IAudioDeviceManager.d.ts","sourceRoot":"","sources":["../../ts/Private/IAudioDeviceManager.ts"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;GAEG;AACH,oBAAY,qBAAqB;IAC/B;;OAEG;IACH,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AC,sBAAsB,IAAI,OAAO;IAE1C;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM;IAEnE;;;;;;;;;OASG;IACH,QAAQ,CAAC,sBAAsB,IAAI,MAAM;IAEzC;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,wBAAwB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM;IAErE;;;;;;;;;OASG;IACH,QAAQ,CAAC,uBAAuB,IAAI,MAAM;IAE1C;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,4BAA4B,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM;IAEzE;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,2BAA2B,IAAI,MAAM;IAE9C;;;;;;;;OAQG;IACH,QAAQ,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM;IAE5D;;;;;;;;OAQG;IACH,QAAQ,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM;IAE7D;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM;IAE5D;;OAEG;IACH,QAAQ,CAAC,OAAO,IAAI,IAAI;IAExB;;;;;;;OAOG;IACH,QAAQ,CAAC,wBAAwB,IAAI,eAAe;IAEpD;;;;;;;OAOG;IACH,QAAQ,CAAC,yBAAyB,IAAI,eAAe;CACtD"}
|
|
@@ -10,8 +10,8 @@ export declare class IMediaEngineImpl implements IMediaEngine {
|
|
|
10
10
|
protected getApiTypeFromRegisterVideoEncodedFrameObserver(observer: IVideoEncodedFrameObserver): string;
|
|
11
11
|
pushAudioFrame(frame: AudioFrame, trackId?: number): number;
|
|
12
12
|
protected getApiTypeFromPushAudioFrame(frame: AudioFrame, trackId?: number): string;
|
|
13
|
-
pullAudioFrame():
|
|
14
|
-
protected getApiTypeFromPullAudioFrame(): string;
|
|
13
|
+
pullAudioFrame(frame: AudioFrame): number;
|
|
14
|
+
protected getApiTypeFromPullAudioFrame(frame: AudioFrame): string;
|
|
15
15
|
setExternalVideoSource(enabled: boolean, useTexture: boolean, sourceType?: ExternalVideoSourceType, encodedVideoOption?: SenderOptions): number;
|
|
16
16
|
protected getApiTypeFromSetExternalVideoSource(enabled: boolean, useTexture: boolean, sourceType?: ExternalVideoSourceType, encodedVideoOption?: SenderOptions): string;
|
|
17
17
|
setExternalAudioSource(enabled: boolean, sampleRate: number, channels: number, localPlayback?: boolean, publish?: boolean): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAgoraMediaEngineImpl.d.ts","sourceRoot":"","sources":["../../../ts/Private/impl/IAgoraMediaEngineImpl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,aAAa,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,0BAA0B,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM;IAYjE,SAAS,CAAC,wCAAwC,CAChD,QAAQ,EAAE,mBAAmB,GAC5B,MAAM;IAIT,0BAA0B,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM;IAYjE,SAAS,CAAC,wCAAwC,CAChD,QAAQ,EAAE,mBAAmB,GAC5B,MAAM;IAIT,iCAAiC,CAC/B,QAAQ,EAAE,0BAA0B,GACnC,MAAM;IAaT,SAAS,CAAC,+CAA+C,CACvD,QAAQ,EAAE,0BAA0B,GACnC,MAAM;IAIT,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,GAAE,MAAU,GAAG,MAAM;IAgB9D,SAAS,CAAC,4BAA4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