2#if defined(__ANDROID__) && (__ANDROID_API__ >= HEPHAUDIO_ANDROID_AAUDIO_MIN_API_LEVEL)
6#include <aaudio/AAudio.h>
21 using NativeAudio::InitializeRender;
22 using NativeAudio::InitializeCapture;
26 AAudioStream* pRenderStream;
27 AAudioStream* pCaptureStream;
28 size_t renderBufferFrameCount;
29 size_t captureBufferFrameCount;
52 double GetFinalAOVolume(
AudioObject* pAudioObject)
const override;
53 static aaudio_data_callback_result_t RenderCallback(AAudioStream* stream,
void* userData,
void* audioData, int32_t numFrames);
54 static aaudio_data_callback_result_t CaptureCallback(AAudioStream* stream,
void* userData,
void* audioData, int32_t numFrames);
55 static void ErrorCallback(AAudioStream* stream,
void* userData, aaudio_result_t error);
#define HEPH_API
Definition HephShared.h:132
uses AAudio.
Definition AndroidAudioA.h:19
void GetNativeParams(NativeAudioParams &nativeParams) const override
void StopRendering() override
double GetMasterVolume() const override
void SetNativeParams(const NativeAudioParams &nativeParams) override
void StopCapturing() override
void InitializeCapture(AudioDevice *device, AudioFormatInfo format) override
void SetMasterVolume(double volume) override
void InitializeRender(AudioDevice *device, AudioFormatInfo format) override
base class for classes that interact with the Android audio APIs.
Definition AndroidAudioBase.h:21
stores information about an audio device.
Definition AudioDevice.h:76
stores information that's necessary to play audio.
Definition AudioObject.h:36
struct for storing the AAudio specific parameters.
Definition AAudioParams.h:18
base class for storing the native audio API specific parameters.
Definition NativeAudioParams.h:15