-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d5b6d0
commit cd0b4ca
Showing
6 changed files
with
63 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,3 @@ | ||
import { RtcConnection } from '../IAgoraRtcEngineEx'; | ||
import { | ||
RemoteVoicePositionInfo, | ||
SpatialAudioZone, | ||
} from '../IAgoraSpatialAudio'; | ||
import { ILocalSpatialAudioEngineImpl } from '../impl/IAgoraSpatialAudioImpl'; | ||
|
||
export class LocalSpatialAudioEngineInternal extends ILocalSpatialAudioEngineImpl { | ||
protected override getApiTypeFromRelease(): string { | ||
return 'LocalSpatialAudioEngine_release'; | ||
} | ||
|
||
protected override getApiTypeFromSetMaxAudioRecvCount( | ||
maxCount: number | ||
): string { | ||
return 'LocalSpatialAudioEngine_setMaxAudioRecvCount'; | ||
} | ||
|
||
protected override getApiTypeFromSetAudioRecvRange(range: number): string { | ||
return 'LocalSpatialAudioEngine_setAudioRecvRange'; | ||
} | ||
|
||
protected override getApiTypeFromSetDistanceUnit(unit: number): string { | ||
return 'LocalSpatialAudioEngine_setDistanceUnit'; | ||
} | ||
|
||
protected override getApiTypeFromUpdateSelfPosition( | ||
position: number[], | ||
axisForward: number[], | ||
axisRight: number[], | ||
axisUp: number[] | ||
): string { | ||
return 'LocalSpatialAudioEngine_updateSelfPosition'; | ||
} | ||
|
||
protected override getApiTypeFromUpdateSelfPositionEx( | ||
position: number[], | ||
axisForward: number[], | ||
axisRight: number[], | ||
axisUp: number[], | ||
connection: RtcConnection | ||
): string { | ||
return 'LocalSpatialAudioEngine_updateSelfPositionEx'; | ||
} | ||
|
||
protected override getApiTypeFromUpdatePlayerPositionInfo( | ||
playerId: number, | ||
positionInfo: RemoteVoicePositionInfo | ||
): string { | ||
return 'LocalSpatialAudioEngine_updatePlayerPositionInfo'; | ||
} | ||
|
||
protected override getApiTypeFromSetParameters(params: string): string { | ||
return 'LocalSpatialAudioEngine_setParameters'; | ||
} | ||
|
||
protected override getApiTypeFromMuteLocalAudioStream(mute: boolean): string { | ||
return 'LocalSpatialAudioEngine_muteLocalAudioStream'; | ||
} | ||
|
||
protected override getApiTypeFromMuteAllRemoteAudioStreams( | ||
mute: boolean | ||
): string { | ||
return 'LocalSpatialAudioEngine_muteAllRemoteAudioStreams'; | ||
} | ||
|
||
protected override getApiTypeFromSetZones( | ||
zones: SpatialAudioZone[], | ||
zoneCount: number | ||
): string { | ||
return 'LocalSpatialAudioEngine_setZones'; | ||
} | ||
|
||
protected override getApiTypeFromSetPlayerAttenuation( | ||
playerId: number, | ||
attenuation: number, | ||
forceSet: boolean | ||
): string { | ||
return 'LocalSpatialAudioEngine_setPlayerAttenuation'; | ||
} | ||
|
||
protected override getApiTypeFromMuteRemoteAudioStream( | ||
uid: number, | ||
mute: boolean | ||
): string { | ||
return 'LocalSpatialAudioEngine_muteRemoteAudioStream'; | ||
} | ||
} | ||
export class LocalSpatialAudioEngineInternal extends ILocalSpatialAudioEngineImpl {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters