简体   繁体   中英

More then one audio session per single application instance

WASAPI 或 Media Foundation 是否允许为单个进程创建多个音频会话?

Managing the Audio Session (Windows)

Especially:

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM