![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <WasapiInputStream.h>
Public Member Functions | |
| FWasapiInputStream ()=delete | |
| FWasapiInputStream (FWasapiInputStream &&InOther)=delete | |
| FWasapiInputStream (const FWasapiInputStream &InOther)=delete | |
| FWasapiInputStream (TComPtr< IMMDevice > InDevice, const FWasapiAudioFormat &InFormat, uint32 InNumFramesDesired, FWasapiOnAudioCaptureFunction InCallback) | |
| ~FWasapiInputStream () | |
| FWasapiInputStream & | operator= (FWasapiInputStream &&InOther)=delete |
| FWasapiInputStream & | operator= (const FWasapiInputStream &InOther)=delete |
| bool | IsInitialized () const |
| void | StartStream () |
| void | StopStream () |
| bool | WaitOnBuffer () const |
| bool | CaptureAudioFrames () |
| uint32 | GetBufferSizeFrames () const |
| uint32 | GetBufferSizeBytes () const |
| double | GetStreamPosition () const |
FWasapiInputStream - This class manages the WASPI audio client, capture buffers and audio callback used during capture.
|
delete |
|
delete |
|
delete |
| Audio::FWasapiInputStream::FWasapiInputStream | ( | TComPtr< IMMDevice > | InDevice, |
| const FWasapiAudioFormat & | InFormat, | ||
| uint32 | InNumFramesDesired, | ||
| FWasapiOnAudioCaptureFunction | InCallback | ||
| ) |
| Audio::FWasapiInputStream::~FWasapiInputStream | ( | ) |
| bool Audio::FWasapiInputStream::CaptureAudioFrames | ( | ) |
The capture thread calls this periodically with new audio data during a capture.
| uint32 Audio::FWasapiInputStream::GetBufferSizeBytes | ( | ) | const |
Returns the buffer size in bytes corresponding to the buffer for the audio callback.
| uint32 Audio::FWasapiInputStream::GetBufferSizeFrames | ( | ) | const |
Returns the buffer size in frames for the buffer for the audio callback.
| double Audio::FWasapiInputStream::GetStreamPosition | ( | ) | const |
Returns the current stream position in seconds.
| bool Audio::FWasapiInputStream::IsInitialized | ( | ) | const |
Returns whether or not this object has been successfully initialized.
|
delete |
|
delete |
| void Audio::FWasapiInputStream::StartStream | ( | ) |
Starts the audio capture which triggers periodic callbacks with new audio data.
| void Audio::FWasapiInputStream::StopStream | ( | ) |
Stops the audio client which will shut down the stream and any further callbacks.
| bool Audio::FWasapiInputStream::WaitOnBuffer | ( | ) | const |
Waits on the audio client event handle which will get set when new capture data is available.