channels added to front programmatically
This commit is contained in:
parent
833b417441
commit
312de5ce2c
6 changed files with 78 additions and 35 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue