Does WASAPI or Media Foundation allow creating several audio sessions for single process?
2 Answers
Managing the Audio Session (Windows)
Especially:
... Typically, an application maintains a single audio session, although applications can create more than one session. ...

- 14,749
- 1
- 53
- 76
-
Thank you for response! Can you give me more information, example or something else? – Alexandr Nov 28 '12 at 13:05
When calling IMMDevice::Activate
you have an option to provide parameters that point to a specific session you need. Having it NULL
you would be attached to default session.
guidAudioSession
Session GUID. This member is a GUID value that identifies the audio session that the stream belongs to. If the GUID identifies a session that has been previously opened, the method adds the stream to that session. If the GUID does not identify an existing session, the method opens a new session and adds the stream to that session. The stream remains a member of the same session for its lifetime.

- 68,205
- 6
- 94
- 158