-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiterator-impl.win.h
More file actions
32 lines (27 loc) · 839 Bytes
/
Copy pathiterator-impl.win.h
File metadata and controls
32 lines (27 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "iterator.h"
#include "simpleaudio.win.h"
namespace iteratorprofiles_win {
/* Device Iterator Profile */
class MMDeviceIteratorProfile : public iterator::IIteratorProfile<IMMDevice *>
{
public:
MMDeviceIteratorProfile(IMMDeviceEnumerator *pEnumerator);
~MMDeviceIteratorProfile();
void get(unsigned int index, IMMDevice **ppDevice);
unsigned int count();
private:
IMMDeviceCollection * pDevices;
};
/* Session Iterator Profile */
class AudioSessionControlIteratorProfile : public iterator::IIteratorProfile<IAudioSessionControl *>
{
public:
AudioSessionControlIteratorProfile(IMMDevice *pDevice);
~AudioSessionControlIteratorProfile();
void get(unsigned int index, IAudioSessionControl **pSession);
unsigned int count();
private:
IAudioSessionEnumerator * pSessionEnumerator;
};
}