dynamically updated session name
This commit is contained in:
parent
170d52067b
commit
0880305b23
11 changed files with 51 additions and 36 deletions
|
|
@ -61,9 +61,9 @@ class Endpoint {
|
|||
unsigned long endpointState;
|
||||
Roles endpointRoles = (Roles)0;
|
||||
uint64_t idx;
|
||||
/* Not implemented in llvm-mingw. Sad!
|
||||
* IAudioMeterInformation *endpointPeakMeter = nullptr;
|
||||
*/
|
||||
//Not implemented in llvm-mingw. Sad!
|
||||
//IAudioMeterInformation *endpointPeakMeter = nullptr;
|
||||
|
||||
};
|
||||
|
||||
class EndpointVolumeCallback : public IAudioEndpointVolumeCallback {
|
||||
|
|
@ -85,6 +85,7 @@ class EndpointVolumeCallback : public IAudioEndpointVolumeCallback {
|
|||
class EndpointSituationCallback : public IMMNotificationClient {
|
||||
public:
|
||||
//EndpointSituationCallback(IMMDeviceEnumerator *deviceEnumerator, std::vector<Endpoint*> playbackDevices, std::vector<Endpoint*> captureDevices);
|
||||
//EndpointSituationCallback(std::vector<Endpoint*>* playbackDevices, std::vector<Endpoint*>* captureDevices);
|
||||
ULONG AddRef();
|
||||
ULONG Release();
|
||||
HRESULT QueryInterface(REFIID riid, VOID **ppvInterface);
|
||||
|
|
@ -97,15 +98,16 @@ class EndpointSituationCallback : public IMMNotificationClient {
|
|||
private:
|
||||
ULONG ref = 1;
|
||||
//IMMDeviceEnumerator *deviceEnumerator;
|
||||
//std::vector<Endpoint*> playbackDevices;
|
||||
//std::vector<Endpoint*> captureDevices;
|
||||
//std::vector<Endpoint*>* playbackDevices;
|
||||
//std::vector<Endpoint*>* captureDevices;
|
||||
};
|
||||
|
||||
class Overseer {
|
||||
//TODO singleton?
|
||||
|
||||
public:
|
||||
Overseer();
|
||||
void openControlPanel();
|
||||
//todo: restore/overseer
|
||||
std::vector<Endpoint*> getPlaybackEndpoints();
|
||||
std::vector<Endpoint*> getCaptureEndpoints();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue