8#include <Mmdeviceapi.h>
9#include <audiopolicy.h>
24 using NativeAudio::InitializeRender;
25 using NativeAudio::InitializeCapture;
29 Microsoft::WRL::ComPtr<IMMDeviceEnumerator> pEnumerator;
30 Microsoft::WRL::ComPtr<IAudioSessionManager> pRenderSessionManager;
31 Microsoft::WRL::ComPtr<IAudioSessionControl> pRenderSessionControl;
65 bool EnumerateAudioDevices()
override;
66 void CheckAudioDevices()
override;
AudioDeviceType
Definition AudioDevice.h:11
#define HEPH_API
Definition HephShared.h:132
base class for classes that interact with the Windows audio APIs.
Definition WinAudioBase.h:24
uses WASAPI.
Definition WinAudio.h:22
void InitializeRender(AudioDevice *device, AudioFormatInfo format) override
void SetNativeParams(const NativeAudioParams &nativeParams) override
void StopCapturing() override
void SetMasterVolume(double volume) override
void SetIconPath(const std::filesystem::path &iconPath)
void StopRendering() override
void InitializeCapture(AudioDevice *device, AudioFormatInfo format) override
void GetNativeParams(NativeAudioParams &nativeParams) const override
double GetMasterVolume() const override
void SetDisplayName(const std::string &displayName)
stores information about an audio device.
Definition AudioDevice.h:76
base class for storing the native audio API specific parameters.
Definition NativeAudioParams.h:15
struct for storing the WASAPI specific parameters.
Definition WasapiParams.h:18