1

Does WASAPI or Media Foundation allow creating several audio sessions for single process?

Alexandr
  • 11
  • 1
  • 1

2 Answers2

1

Managing the Audio Session (Windows)

Especially:

... Typically, an application maintains a single audio session, although applications can create more than one session. ...

RedX
  • 14,749
  • 1
  • 53
  • 76
1

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.

Roman R.
  • 68,205
  • 6
  • 94
  • 158