wip: session meter

This commit is contained in:
Hane 2024-04-30 23:40:52 +02:00
commit dc8951776f
7 changed files with 30 additions and 5 deletions

View file

@ -33,6 +33,7 @@ class Session {
Session(Endpoint* ep, IAudioSessionControl2* sessionControl) : Session(ep, sessionControl, SIZE_MAX) {};
void setVolume(NGuid guid, int channel, float volume);
float getVolume(int channel);
float getPeakVolume();
void setMute(NGuid guid, bool muted);
bool getMute();
SessionState getState();
@ -51,6 +52,7 @@ class Session {
SessionState sessionState;
Endpoint* ep;
IAudioSessionControl2* sessionControl = nullptr;
IAudioMeterInformation* meterInformation = nullptr;
ISimpleAudioVolume* sessionVolume = nullptr;
size_t idx;
};