7#include <CoreAudio/CoreAudio.h>
22 using NativeAudio::InitializeRender;
23 using NativeAudio::InitializeCapture;
26 AudioDeviceIOProcID renderProcID;
27 AudioDeviceIOProcID captureProcID;
49 bool EnumerateAudioDevices()
override;
50 void ToStreamDesc(
const AudioFormatInfo& format, AudioStreamBasicDescription& streamDesc)
const;
51 void FromStreamDesc(
AudioFormatInfo& format,
const AudioStreamBasicDescription& streamDesc)
const;
52 static OSStatus RenderCallback(AudioDeviceID device,
const AudioTimeStamp* now,
const AudioBufferList* indata,
const AudioTimeStamp* intime, AudioBufferList* outdata,
const AudioTimeStamp* outtime,
void* udata);
53 static OSStatus CaptureCallback(AudioDeviceID device,
const AudioTimeStamp* now,
const AudioBufferList* indata,
const AudioTimeStamp* intime, AudioBufferList* outdata,
const AudioTimeStamp* outtime,
void* udata);
#define HEPH_API
Definition HephShared.h:132
uses CoreAudio
Definition AppleAudio.h:20
void InitializeCapture(AudioDevice *device, AudioFormatInfo format) override
void SetMasterVolume(double volume) override
void GetNativeParams(NativeAudioParams &nativeParams) const override
void SetNativeParams(const NativeAudioParams &nativeParams) override
void InitializeRender(AudioDevice *device, AudioFormatInfo format) override
void StopCapturing() override
void StopRendering() override
double GetMasterVolume() const override
base class for the classes that interact with the native audio APIs.
Definition NativeAudio.h:28
stores information about an audio device.
Definition AudioDevice.h:76
base class for storing the native audio API specific parameters.
Definition NativeAudioParams.h:15