调整目录
This commit is contained in:
26
WinDevice/src/Audio/AudioManager.h
Normal file
26
WinDevice/src/Audio/AudioManager.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <Mmdeviceapi.h>
|
||||
|
||||
class AudioManager
|
||||
{
|
||||
public:
|
||||
AudioManager();
|
||||
~AudioManager();
|
||||
|
||||
HRESULT Init();
|
||||
HRESULT Uninit();
|
||||
|
||||
IMMDeviceCollection* GetDeviceList(EDataFlow flow);
|
||||
IMMDevice* GetDefaultDevice(EDataFlow flow);
|
||||
|
||||
private:
|
||||
IMMDeviceEnumerator* pEnumerator = NULL;
|
||||
IMMDeviceCollection* pRenderCollection = NULL;
|
||||
IMMDeviceCollection* pCaptureCollection = NULL;
|
||||
IMMDevice* pDefaultRenderEndpoint = NULL;
|
||||
IMMDevice* pDefaultCaptureEndpoint = NULL;
|
||||
|
||||
HRESULT _UpdateDeviceList(EDataFlow flow);
|
||||
HRESULT _UpdateDefaultDevice(EDataFlow flow);
|
||||
};
|
Reference in New Issue
Block a user