unreal.SimpleAudioEncoder

class unreal.SimpleAudioEncoder(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

Simple Audio Encoder

C++ Source:

  • Plugin: AVCodecsCore

  • Module: AVCodecsCoreRHI

  • File: SimpleAudioEncoder.h

close() None

Close

get_codec() SimpleAudioCodec

Get Codec

Return type:

SimpleAudioCodec

get_config() SimpleAudioEncoderConfig

Get Config

Return type:

SimpleAudioEncoderConfig

is_async() bool

Is Async

Return type:

bool

is_open() bool

Is Open

Return type:

bool

open(codec, config, asynchronous) bool

Open

Parameters:
Return type:

bool

receive_packet() SimpleAudioPacket or None

Receive Packet

Returns:

out_packet (SimpleAudioPacket):

Return type:

SimpleAudioPacket or None

receive_packets() Array[SimpleAudioPacket]

Receive Packets

Returns:

out_packets (Array[SimpleAudioPacket]):

Return type:

Array[SimpleAudioPacket]

send_frame_float(resource, timestamp, num_samples, sample_duration) bool

Send Frame Float

Parameters:
  • resource (Array[float]) –

  • timestamp (double) –

  • num_samples (int32) –

  • sample_duration (float) –

Return type:

bool

set_config(new_config) None

Set Config

Parameters:

new_config (SimpleAudioEncoderConfig) –