yea
This commit is contained in:
13
AsuroTool/AudioApi.h
Normal file
13
AsuroTool/AudioApi.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <mmdeviceapi.h>
|
||||
|
||||
#include "ApplicationData.h"
|
||||
|
||||
HRESULT getDeviceProperty(IPropertyStore* propertyStore, const PROPERTYKEY propertyKey, PROPVARIANT* outData);
|
||||
HRESULT getDevicePropertyString(IPropertyStore* propertyStore, const PROPERTYKEY propertyKey, PROPVARIANT* outData, const wchar_t*& outString, const wchar_t* defaultStr = L"Unknown");
|
||||
void setDefaultAudioDevice(ApplicationData* appData, const wchar_t* deviceId, ERole role);
|
||||
void loadAudioDevices(std::vector<AudioDevice>& deviceList, EDataFlow deviceType);
|
||||
void reloadDeviceLists(ApplicationData* appData);
|
||||
float getVolume(IAudioEndpointVolume* volumeInterface);
|
||||
float getMeterValue(IAudioMeterInformation* meterInterface);
|
||||
Reference in New Issue
Block a user