Copyright © 2001-2019 MultiMedia Soft

CastingWasapiLoopbackStop event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs when a WASAPI loopack device, through a call to the the CastingStop method, stops a casting session previously created by one between the CastingCreateFromStreamMixer, CastingWmaPubPointOpenForStreamMixer or CastingWmaNetworkOpenForStreamMixer methods and started through the CastingStart method .

 

This event may also occur if the connection with the server should die for external reasons: in this case the error code would be reported inside the nResult parameter.

 

This event is only intended for usage with Windows Vista and later versions.

 

Further information about management of casting sessions can be found inside the How to use the control as a source for streaming servers like SHOUTcast tutorial.

For further details about the use of WASAPI see the WASAPIMan class and the How to manage audio flow through WASAPI tutorial

 

Syntax

 

[Visual Basic]

CastingWasapiLoopbackStop (

ByVal nCastingUniqueId as Integer,

ByVal nResult as enumErrorCodes

)


 

[C++]

void CastingWasapiLoopbackStop (

short nCastingUniqueId,

short nResult

);


 

 

Parameter

Description

 

 

nCastingUniqueId

Unique identifier of the casting session returned by a previous call to CastingCreateFromWasapiLoopback, CastingWmaPubPointOpenFromWasapiLoopback or CastingWmaNetworkOpenFromWasapiLoopback methods.

nResult

The result of the operation. See the LastError property for details about the returned result code.

In case this parameter should indicate that an error occurred, be sure to close the casting session by calling the CastingStop method.