add namespace
This commit is contained in:
@@ -2,25 +2,27 @@
|
||||
|
||||
#include <Mmdeviceapi.h>
|
||||
|
||||
class AudioManager
|
||||
{
|
||||
public:
|
||||
AudioManager();
|
||||
~AudioManager();
|
||||
namespace WinDevice {
|
||||
class AudioManager
|
||||
{
|
||||
public:
|
||||
AudioManager();
|
||||
~AudioManager();
|
||||
|
||||
HRESULT Init();
|
||||
HRESULT Uninit();
|
||||
HRESULT Init();
|
||||
HRESULT Uninit();
|
||||
|
||||
IMMDeviceCollection* GetDeviceList(EDataFlow flow);
|
||||
IMMDevice* GetDefaultDevice(EDataFlow flow);
|
||||
IMMDeviceCollection* GetDeviceList(EDataFlow flow);
|
||||
IMMDevice* GetDefaultDevice(EDataFlow flow);
|
||||
|
||||
private:
|
||||
IMMDeviceEnumerator* pEnumerator = NULL;
|
||||
IMMDeviceCollection* pRenderCollection = NULL;
|
||||
IMMDeviceCollection* pCaptureCollection = NULL;
|
||||
IMMDevice* pDefaultRenderEndpoint = NULL;
|
||||
IMMDevice* pDefaultCaptureEndpoint = NULL;
|
||||
private:
|
||||
IMMDeviceEnumerator* pEnumerator = NULL;
|
||||
IMMDeviceCollection* pRenderCollection = NULL;
|
||||
IMMDeviceCollection* pCaptureCollection = NULL;
|
||||
IMMDevice* pDefaultRenderEndpoint = NULL;
|
||||
IMMDevice* pDefaultCaptureEndpoint = NULL;
|
||||
|
||||
HRESULT _UpdateDeviceList(EDataFlow flow);
|
||||
HRESULT _UpdateDefaultDevice(EDataFlow flow);
|
||||
};
|
||||
HRESULT _UpdateDeviceList(EDataFlow flow);
|
||||
HRESULT _UpdateDefaultDevice(EDataFlow flow);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user