global h, slidy boi starts where it should, name

This commit is contained in:
Hane 2023-02-10 22:48:46 +01:00
commit e61c600019
10 changed files with 77 additions and 16 deletions

View file

@ -1,9 +1,7 @@
#pragma once
#define WIN32_LEAN_AND_MEAN
#define log_debugcpp(str) do { \
std::cout << "[DEBUG]" << "(" << __FILE__ << ":" << __LINE__ << "): " << str << std::endl; \
} while (0)
#include "global.h"
#include <vector>
#include <iostream>
@ -25,11 +23,16 @@ class Endpoint {
public:
Endpoint(IMMDevice* endpoint);
void setVolume(float volume);
float getVolume();
LPWSTR getName();
//~Endpoint();
private:
IMMDevice* endpoint;
IAudioEndpointVolume *endpointVolume;
IAudioEndpointVolume *endpointVolume ;
IPropertyStore *properties;
LPWSTR friendlyName;
// LPWSTR endpointID = NULL;
};
class Overseer {
@ -43,6 +46,7 @@ class Overseer {
//int getDefaultCaptureEndpoint(Endpoint** defaultEndpoint);
//int getCaptureEndpoints(std::vector<Endpoint*> *captureEndpoints);
//IMMDeviceEnumerator** setOrigin();
//~Overseer();
private:
unsigned int numPlaybackEndpoints;