failed attempt at redrawing
This commit is contained in:
parent
e42c2dd6c9
commit
f84ddaef6c
8 changed files with 142 additions and 25 deletions
|
|
@ -19,6 +19,22 @@
|
|||
//#include <comip.h>
|
||||
#include <Winerror.h>
|
||||
|
||||
class EndpointCallback : public IAudioEndpointVolumeCallback {
|
||||
|
||||
public:
|
||||
EndpointCallback();
|
||||
|
||||
ULONG AddRef();
|
||||
ULONG Release();
|
||||
HRESULT QueryInterface(REFIID riid, VOID **ppvInterface);
|
||||
HRESULT OnNotify(PAUDIO_VOLUME_NOTIFICATION_DATA update);
|
||||
~EndpointCallback();
|
||||
|
||||
private:
|
||||
ULONG ref;
|
||||
PAUDIO_VOLUME_NOTIFICATION_DATA update;
|
||||
};
|
||||
|
||||
class Endpoint {
|
||||
|
||||
public:
|
||||
|
|
@ -30,6 +46,8 @@ class Endpoint {
|
|||
void setMute();
|
||||
bool getMute();
|
||||
LPWSTR getName();
|
||||
void setCallback(EndpointCallback *epc);
|
||||
void removeCallback(EndpointCallback *epc);
|
||||
~Endpoint();
|
||||
|
||||
private:
|
||||
|
|
@ -46,6 +64,7 @@ class Overseer {
|
|||
Overseer();
|
||||
std::vector<Endpoint*> getPlaybackEndpoints();
|
||||
void reloadEndpoints();
|
||||
LPGUID getGuid();
|
||||
//~Overseer();
|
||||
//int getDefaultPlaybackEndpoint(Endpoint** defaultEndpoint);
|
||||
//int getDefaultCaptureEndpoint(Endpoint** defaultEndpoint);
|
||||
|
|
@ -54,6 +73,7 @@ class Overseer {
|
|||
~Overseer();
|
||||
|
||||
private:
|
||||
LPGUID guid;
|
||||
unsigned int numPlaybackEndpoints;
|
||||
IMMDeviceEnumerator *deviceEnumerator;
|
||||
std::vector<Endpoint*> playbackDevices;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue