| IAudioEncoder
|
Module |
|
Header |
/Engine/Source/Runtime/SignalProcessing/Public/DSP/Encoders/IAudioEncoder.h |
Include |
#include "DSP/Encoders/IAudioEncoder.h" |
class IAudioEncoder
IAudioEncoder Interface used to implement a runtime audio encoder.
Name | Description | |
---|---|---|
|
IAudioEncoder |
Must be constructed with AudioBufferSlack. |
Name | Description | |
---|---|---|
|
~IAudioEncoder() |
Name | Description | ||
---|---|---|---|
|
EncodeChunk |
Override this to compress InAudio to OutBytes. Returns true on success, false on failure. |
|
|
EncodeIfPossible() |
If you'd like to run audio encoding on a separate thread, use this call. |
|
|
EndFile |
Override this to compress InAudio to OutBytes. Returns true on success, false on failure. |
|
|
Finalize() |
Call this once you are finished pushing audio. |
|
|
GetCompressedPacketSize() |
Used for internet streaming. |
|
|
Init ( |
Should be called in the constructor of any implementation of IAudioEncoder. |
|
|
PopData |
Pop compressed data. |
|
|
PushAudio |
Call this function when audio is available. |
|
|
SamplesRequiredPerEncode() |
How many samples of decoded audio that are required for a single compression operation. |
|
|
StartFile ( |
This should be overridden to, give the properties in InQualityInfo, write a header into OutFileStart. |