channels added to front programmatically

This commit is contained in:
Hane 2023-08-13 17:43:09 +02:00
commit 312de5ce2c
6 changed files with 78 additions and 35 deletions

View file

@ -28,12 +28,11 @@ class EndpointCallback;
class Endpoint {
public:
Endpoint(IMMDevice* endpoint);
Endpoint(IMMDevice* endpoint, uint64_t idx);
uint64_t getIndex();
void setIndex(uint64_t idx);
void setVolume(NGuid* guid, int channel, float volume);
/* float getLeftChannelVolume(); */
/* float getRightChannelVolume(); */
uint32_t getChannelCount();
float getVolume(int channel);
void setMute(NGuid* guid, bool muted);
bool getMute();
@ -43,6 +42,7 @@ class Endpoint {
~Endpoint();
private:
uint32_t channelCount;
IMMDevice* endpoint;
IAudioEndpointVolume *endpointVolume ;
IPropertyStore *properties;