Choose your operating system:
Windows
macOS
Linux
| IAudioMixerDeviceChangedListener
|
Module |
|
Header |
/Engine/Source/Runtime/AudioMixerCore/Public/AudioMixer.h |
Include |
#include "AudioMixer.h" |
class IAudioMixerPlatformInterface :
public FRunnable,
public FSingleThreadRunnable,
public Audio::IAudioMixerDeviceChangedListener
Abstract interface for mixer platform.
Name | Description | ||
---|---|---|---|
|
FEvent * |
AudioFadeEvent |
Event allows you to block until fadeout is complete. |
|
FEvent * |
AudioRenderEvent |
The render thread sync event. |
|
TUniquePtr< FRu... |
AudioRenderThread |
FRunnableThread* AudioRenderThread;. |
|
AudioStreamInfo |
The audio device stream info. |
|
|
bFadedOut |
||
|
bIsDeviceInitialized |
||
|
bIsGeneratingAudio |
||
|
bIsInDeviceSwap |
This is used if we are attempting to TryLock on DeviceSwapCriticalSection, but a buffer callback is being called in the current thread. |
|
|
bIsUsingNullDevice |
||
|
bMoveAudioStreamToNewAudioDevice |
||
|
bPerformingFade |
||
|
bWarnedBufferUnderrun |
Whether or not we warned of buffer underrun. |
|
|
CallCounterApplyAttenuationInternal |
||
|
CallCounterReadNextBuffer |
||
|
CurrentDeviceName |
This device name can be used to override the default device being used on platforms that use strings to identify audio devices. |
|
|
DeviceSwapCriticalSection |
Critical Section used for times when we need the render loop to halt for the device swap. |
|
|
FadeParam |
Source param used to fade in and out audio device. |
|
|
float |
FadeVolume |
The fade value. Used for fading in/out master audio. |
|
const int32 |
InstanceID |
A Unique ID Identifying this instance. Mostly used for logging. |
|
LastError |
String containing the last generated error. |
|
|
NumOutputBuffers |
The number of mixer buffers to queue on the output source voice. |
|
|
OpenStreamParams |
||
|
OutputBuffer |
List of generated output buffers. |
Name | Description | |
---|---|---|
|
IAudioMixerPlatformInterface() |
Constructor. |
Name | Description | |
---|---|---|
|
~IAudioMixerPlatformInterface() |
Virtual destructor. |
Name | Description | ||
---|---|---|---|
|
ApplyAttenuationInternal ( |
||
|
ApplyMasterAttenuation ( |
Performs buffer fades for shutdown/startup of audio mixer. |
|
|
AudioMixerPlatformLogOnce ( |
Is called when an error, warning or log is generated. |
|
|
BeginGeneratingAudio() |
Start generating audio from our mixer. |
|
|
CheckAudioDeviceChange() |
Check if audio device changed if applicable. Return true if audio device changed. |
|
|
CloseAudioStream() |
Closes the audio stream (if it's open). |
|
|
ICompressedA... |
CreateCompressedAudioInfo ( |
Creates a Compressed audio info class suitable for decompressing this SoundWave. |
|
ICompressedA... |
CreateCompressedAudioInfo ( |
|
|
CreateNullDeviceThread |
Called by platform specific logic to pre-create or create the null renderer thread |
|
|
DisablePCMAudioCaching() |
Whether or not the platform disables caching of decompressed PCM data (i.e. to save memory on fixed memory platforms) |
|
|
FadeIn() |
Reset the fade state (use if reusing audio platform interface, e.g. in main audio device. |
|
|
FadeOut() |
Start a fadeout. Prevents pops during shutdown. |
|
|
GetChannelTypeAtIndex ( |
Helper function to gets the channel map type at the given index. |
|
|
GetCurrentDeviceName() |
Returns the name of the currently used audio device. |
|
|
GetDefaultDeviceName() |
Return any optional device name defined in platform configuratio. |
|
|
GetDefaultOutputDeviceIndex ( |
Returns the default device index. |
|
|
IAudioPlatfo... |
GetDeviceInfoCache() |
Get the DeviceInfo Cache if one exists. |
|
GetIndexForDevice ( |
Can be used to look up the current index for a given device name. |
|
|
GetLastError() |
Returns the last error generated. |
|
|
GetNumFrames ( |
Allows platforms to filter the requested number of frames to render. |
|
|
GetNumOutputDevices ( |
Returns the number of output devices. |
|
|
GetOutputDeviceInfo ( |
Gets the device information of the given device index. |
|
|
EAudioMixerP... |
GetPlatformApi() |
Returns the platform API enumeration. |
|
FAudioPlatfo... |
GetPlatformDeviceInfo() |
Returns the platform device info of the currently open audio stream. |
|
FAudioPlatfo... |
GetPlatformSettings() |
Gets the platform specific audio settings. |
|
GetRuntimeFormat ( |
Returns the name of the format of the input sound wave. |
|
|
HasCompressedAudioInfoClass ( |
Checks if the platform has a compressed audio format for sound waves. |
|
|
InitializeHardware() |
Initialize the hardware. |
|
|
IsInitialized() |
Is the hardware initialized. |
|
|
IsNonRealtime() |
Whether this is an interface for a non-realtime renderer. |
|
|
MainAudioDeviceRun() |
Run the "main" audio device. |
|
|
MoveAudioStreamToNewAudioDevice ( |
Resets the audio stream to use a new audio device with the given device ID (empty string means default). |
|
|
OnHardwareUpdate() |
Function called at the beginning of every call of UpdateHardware on the audio thread. |
|
|
OpenAudioStream ( |
Opens up a new audio stream with the given parameters. |
|
|
PostInitializeHardware() |
This is called after InitializeHardware() is called. |
|
|
ReadNextBuffer() |
Retrieves the next generated buffer and feeds it to the platform mixer output stream. |
|
|
RequestDeviceSwap |
Sends a command to swap which output device is being used |
|
|
ResumeContext() |
Function to resume audio rendering. Used on mobile platforms which can suspend the application. |
|
|
ResumePlaybackOnNewDevice() |
Resumes playback on new audio device after device change. |
|
|
RunInternal() |
Wrapper around the thread Run. This is virtualized so a platform can fundamentally override the render function. |
|
|
StartAudioStream() |
Starts the audio stream processing and generating audio. |
|
|
StartRunningNullDevice() |
When called, spins up a thread to start consuming output when no audio device is available. |
|
|
StopAudioStream() |
Stops the audio stream (but keeps the audio stream open). |
|
|
StopGeneratingAudio() |
Stops the render thread from generating audio. |
|
|
StopRunningNullDevice() |
When called, terminates the null device. |
|
|
SubmitBuffer ( |
Submit the given buffer to the platform's output audio device. |
|
|
SupportsHardwareDecompression() |
Whether or not this platform has hardware decompression. |
|
|
SupportsRealtimeDecompression() |
Whether or not the platform supports realtime decompression. |
|
|
SuspendContext() |
Function to stop all audio from rendering. Used on mobile platforms which can suspend the application. |
|
|
TeardownHardware() |
Teardown the hardware. |
Name | Description | ||
---|---|---|---|
|
FSingleThrea... |
GetSingleThreadInterface() |
FSingleThreadRunnable accessor for ticking this FRunnable when multi-threading is disabled. |
|
Run() |
Runs the runnable object. |
Name |
Description |
---|---|
NextInstanceID |
A Counter to provide the next unique id. |