Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The OnSessionCreated method notifies the registered processes that the audio session has been created.
Syntax
HRESULT OnSessionCreated(
[in] IAudioSessionControl *NewSession
);
Parameters
[in] NewSession
Pointer to the IAudioSessionControl interface of the audio session that was created.
Return value
If the method succeeds, it returns S_OK.
Remarks
After registering its IAudioSessionNotification interface, the application receives event notifications in the form of callbacks through the methods of the interface.
The audio engine calls OnSessionCreated when a new session is activated on the device endpoint. This method is called from the session manager thread. This method must take a reference to the session in the NewSession parameter if it wants to keep the reference after this call completes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | audiopolicy.h |