Skip to content

Latest commit

 

History

History
74 lines (60 loc) · 3.06 KB

nf-audiopolicy-iaudiosessionnotification-onsessioncreated.md

File metadata and controls

74 lines (60 loc) · 3.06 KB
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.
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
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
IAudioSessionNotification::OnSessionCreated
audiopolicy/IAudioSessionNotification::OnSessionCreated
c++
APIRef
kbSyntax
COM
audiopolicy.h
IAudioSessionNotification.OnSessionCreated

IAudioSessionNotification::OnSessionCreated

-description

The OnSessionCreated method notifies the registered processes that the audio session has been created.

-parameters

-param NewSession [in]

Pointer to the IAudioSessionControl interface of the audio session that was created.

-returns

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.

-see-also

IAudioSessionNotification