FLocalAudioStats

Local audio statistics.

USTRUCT(BlueprintType)
struct FLocalAudioStats
{
	GENERATED_BODY()
public:
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LocalAudioStats")
	int numChannels = 0;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LocalAudioStats")
	int sentSampleRate = 0;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LocalAudioStats")
	int sentBitrate = 0;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LocalAudioStats")
	int internalCodec = 0;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LocalAudioStats")
	int txPacketLossRate = 0; 	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LocalAudioStats")
	int audioDeviceDelay = 0;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LocalAudioStats")
	int audioPlayoutDelay = 0;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LocalAudioStats")
	int earMonitorDelay = 0;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LocalAudioStats")
	int aecEstimatedDelay = 0;
	FLocalAudioStats(){}
	FLocalAudioStats(const agora::rtc::LocalAudioStats & AgoraData){
		numChannels = AgoraData.numChannels;
		sentSampleRate = AgoraData.sentSampleRate;
		sentBitrate = AgoraData.sentBitrate;
		internalCodec = AgoraData.internalCodec;
		txPacketLossRate = AgoraData.txPacketLossRate;
		audioDeviceDelay = AgoraData.audioDeviceDelay;
		audioPlayoutDelay = AgoraData.audioPlayoutDelay;
		earMonitorDelay = AgoraData.earMonitorDelay;
		aecEstimatedDelay = AgoraData.aecEstimatedDelay;
	}
	agora::rtc::LocalAudioStats CreateAgoraData() const {
		agora::rtc::LocalAudioStats AgoraData;
		AgoraData.numChannels = numChannels;
		AgoraData.sentSampleRate = sentSampleRate;
		AgoraData.sentBitrate = sentBitrate;
		AgoraData.internalCodec = internalCodec;
		AgoraData.txPacketLossRate = txPacketLossRate;
		AgoraData.audioDeviceDelay = audioDeviceDelay;
		AgoraData.audioPlayoutDelay = audioPlayoutDelay;
		AgoraData.earMonitorDelay = earMonitorDelay;
		AgoraData.aecEstimatedDelay = aecEstimatedDelay;
		return AgoraData;
	}
	void FreeAgoraData(agora::rtc::LocalAudioStats & AgoraData) const {
	}
};

Attributes

numChannels
The number of audio channels.
sentSampleRate
The sampling rate (Hz) of sending the local user's audio stream.
sentBitrate
The average bitrate (Kbps) of sending the local user's audio stream.
txPacketLossRate
The packet loss rate (%) from the local client to the Agora server before applying the anti-packet loss strategies.
internalCodec
The internal payload codec.
audioDeviceDelay
The audio device module delay (ms) when playing or recording audio.
earMonitorDelay
The ear monitor delay (ms), which is the delay from microphone input to headphone output.
aecEstimatedDelay
Acoustic echo cancellation (AEC) module estimated delay (ms), which is the signal delay between when audio is played locally before being locally captured.