FAudioPcmFrame

The parameters of the audio frame in PCM format.

USTRUCT(BlueprintType)
struct FAudioPcmFrame {

	GENERATED_BODY()
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AudioPcmFrame")
	int64 capture_timestamp;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AudioPcmFrame")
	int64 samples_per_channel_;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AudioPcmFrame")
	int sample_rate_hz_;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AudioPcmFrame")
	int64 num_channels_;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AudioPcmFrame")
	EBYTES_PER_SAMPLE bytes_per_sample = EBYTES_PER_SAMPLE::TWO_BYTES_PER_SAMPLE;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AudioPcmFrame")
	/*3840 * sizeof(int16_t)*/
	TArray<int64> data_;
};

Attributes

OPTIONAL_ENUM_SIZE_T
The buffer size of the PCM audio frame. The initial value is 3840.
capture_timestamp
The timestamp (ms) of the audio frame.
samples_per_channel_
The number of samples per channel in the audio frame.
sample_rate_hz_
Audio sample rate (Hz).
num_channels_
The number of audio channels.
bytes_per_sample
The number of bytes per sample.
data_
The audio frame.