UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:audiopolicy.IAudioSessionNotification.OnSessionCreated |
IAudioSessionNotification::OnSessionCreated (audiopolicy.h) |
The OnSessionCreated method notifies the registered processes that the audio session has been created. |
|
coreaudio\iaudiosessionnotification_onsessioncreated.htm |
CoreAudio |
03f22e06-f446-4c57-a955-3d12deec4152 |
12/05/2018 |
IAudioSessionNotification interface [Core Audio],OnSessionCreated method, IAudioSessionNotification.OnSessionCreated, IAudioSessionNotification::OnSessionCreated, OnSessionCreated, OnSessionCreated method [Core Audio], OnSessionCreated method [Core Audio],IAudioSessionNotification interface, audiopolicy/IAudioSessionNotification::OnSessionCreated, coreaudio.iaudiosessionnotification_onsessioncreated |
audiopolicy.h |
Windows |
Windows 7 [desktop apps only] |
Windows Server 2008 R2 [desktop apps only] |
Windows |
19H1 |
|
|
|
|
|
|
The OnSessionCreated method notifies the registered processes that the audio session has been created.
Pointer to the IAudioSessionControl interface of the audio session that was created.
If the method succeeds, it returns S_OK.
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.