temp commit
This commit is contained in:
parent
064c16d9e7
commit
574c6f039e
7 changed files with 99 additions and 11 deletions
|
|
@ -30,19 +30,25 @@ class Session {
|
|||
|
||||
public:
|
||||
Session(Endpoint* ep, IAudioSessionControl2* sessionControl, size_t idx);
|
||||
Session(Endpoint* ep, IAudioSessionControl2* sessionControl) : Session(ep, sessionControl, SIZE_MAX) {};
|
||||
void setVolume(NGuid guid, int channel, float volume);
|
||||
float getVolume(int channel);
|
||||
void setMute(NGuid guid, bool muted);
|
||||
bool getMute();
|
||||
SessionState getState();
|
||||
void setState(SessionState state);
|
||||
void setIndex(size_t idx);
|
||||
std::wstring getName();
|
||||
|
||||
void setStateCallback(SessionStateCallback *ssc);
|
||||
void removeStateCallback(SessionStateCallback *ssc);
|
||||
~Session();
|
||||
//uint32_t getChannelCount();
|
||||
|
||||
private:
|
||||
std::wstring fetchProcessName(DWORD pid);
|
||||
std::wstring sessionName;
|
||||
SessionState sessionState;
|
||||
Endpoint* ep;
|
||||
IAudioSessionControl2* sessionControl = nullptr;
|
||||
ISimpleAudioVolume* sessionVolume = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue