Navigation
API > API/Plugins > API/Plugins/PixelStreaming2Core
A "Audio Producer" is an object that you use to push audio frames into the Pixel Streaming system.
Example usage:
(1) Each new frame you want to push you call `MyAudioProducer->PushFrame(Buffer, NumSamples, NumChannels, SampleRate)_
Note: Any audio you push in with `PushAudio_ will be mixed with other audio producers before being streamed
| Name | IPixelStreaming2AudioProducer |
| Type | class |
| Header File | /Engine/Plugins/Media/PixelStreaming2/Source/PixelStreaming2Core/Public/IPixelStreaming2AudioProducer.h |
| Include Path | #include "IPixelStreaming2AudioProducer.h" |
Syntax
class IPixelStreaming2AudioProducer
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void PushAudio
(
const float* InBuffer, |
Pushes audio into the PS2 audio pipeline which will mix with other audio producers before broadcasting. | IPixelStreaming2AudioProducer.h |