Open 3D Engine AudioSystem Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <MicrophoneBus.h>
Inherits AZ::EBusTraits.
Public Types | |
using | MutexType = AZStd::recursive_mutex |
Public Member Functions | |
virtual bool | InitializeDevice ()=0 |
virtual void | ShutdownDevice ()=0 |
virtual bool | StartSession ()=0 |
virtual void | EndSession ()=0 |
virtual bool | IsCapturing ()=0 |
virtual SAudioInputConfig | GetFormatConfig () const =0 |
virtual AZStd::size_t | GetData (void **outputData, AZStd::size_t numFrames, const SAudioInputConfig &targetConfig, bool shouldDeinterleave)=0 |
Static Public Attributes | |
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::Single |
Interface for connecting with a hardware Microphone device. The pattern that should be used is as follows:
InitializeDevice StartSession (Capturing Mic Data...) EndSession ... (optional: additional StartSession/EndSession pairs) ... ShutdownDevice
|
pure virtual |
Stop capturing Microphone data.
|
pure virtual |
Consume a number of sample frames from the captured data.
outputData | Where the data will be copied to. |
numFrames | The number of sample frames requested. |
targetConfig | The configuration of the data sink (sample rate, channels, sample type, etc). |
shouldDeinterleave | Ask for a deinterleaved copy when in stereo: [LRLRLRLR] --> [LLLL, RRRR] |
|
pure virtual |
Obtain the format set up for the mic capture session.
|
pure virtual |
Initialize a hardware Microphone input device with the OS.
|
pure virtual |
Check if the Microphone is actively capturing data.
|
pure virtual |
Shutdown the connection to the Microphone device.
|
pure virtual |
Start capturing Microphone data.
|
static |
EBus Traits