21 using NativeAudio::InitializeRender;
22 using NativeAudio::InitializeCapture;
46 bool EnumerateAudioDevices()
override;
47 void CheckAudioDevices()
override;
48 void RenderData(GUID deviceId);
49 void CaptureData(GUID deviceId);
50 static BOOL CALLBACK RenderDeviceEnumerationCallback(LPGUID lpGuid, LPCWSTR lpcstrDescription, LPCWSTR lpcstrModule, LPVOID pWinAudioDS);
51 static BOOL CALLBACK CaptureDeviceEnumerationCallback(LPGUID lpGuid, LPCWSTR lpcstrDescription, LPCWSTR lpcstrModule, LPVOID pWinAudioDS);
52 static std::string GuidToString(LPGUID guid);
53 static GUID StringToGuid(
const std::string& str);
54 static void RestrictAudioFormatInfo(
AudioFormatInfo& afi,
const DSCAPS& dsCaps);
55 static void RestrictAudioFormatInfo(
AudioFormatInfo& afi,
const DSCCAPS& dscCaps);
#define HEPH_API
Definition HephShared.h:132
base class for classes that interact with the Windows audio APIs.
Definition WinAudioBase.h:24
uses DirectSound
Definition WinAudioDS.h:19
void InitializeCapture(AudioDevice *device, AudioFormatInfo format) override
double GetMasterVolume() const override
void GetNativeParams(NativeAudioParams &nativeParams) const override
void SetNativeParams(const NativeAudioParams &nativeParams) override
void StopCapturing() override
void SetMasterVolume(double volume) override
void StopRendering() override
void InitializeRender(AudioDevice *device, AudioFormatInfo format) override
stores information about an audio device.
Definition AudioDevice.h:76
base class for storing the native audio API specific parameters.
Definition NativeAudioParams.h:15