Copyright © 2001-2023 MultiMedia Soft

Fader.Init method

Previous pageReturn to chapter overviewNext page

Remarks

 

Initialises and enables the embedded Automatic Fader object: once created, the Automatic Fader can be disabled calling the Fader.Exit method.

Note that you can have only one single instance of the Automatic Fader for each instance of the control.

 

For details about using the Automatic Fader refer to the How to use the Automatic Fader section.

 

 

Syntax

 

[Visual Basic]

control.Fader.Init (

nFadeType as enumFadeTypes,

nIndexPlayerA as Integer,

nIndexPlayerB as Integer

) as enumErrorCodes


 

[C++]

short control.Fader.Init (

short nFadeType,

short nIndexPlayerA,

short nIndexPlayerB

);


 

 

Parameter

Description

 

 

nFadeType

The automatic fading type.

Supported values are the following:

Mnemonic value

Value

Meaning

FADE_SINGLE

0

The cross-fading between the two involved players is performed through the respective loaded songs. Use the Fader.StartManualFading method in order to start the first fading operation.

FADE_PLAYLIST

1

The cross-fading between the two involved players is performed getting sound files from their respective loaded playlists: it's mandatory that each involved player has a loaded playlist.  Use the Fader.StartManualFading method in order to start the first fading operation.

FADE_SINGLE_PLAYLIST

2

The cross-fading between the two involved players is performed getting sound files from one single playlist loaded inside one of the two players; the player owning the playlist to execute is determined through a call to the Fader.PlayListUseSingle. Use the Fader.StartManualFading method in order to start the first fading operation.

nIndexPlayerA

Number representing the zero-based index of the first involved player

nIndexPlayerB

Number representing the zero-based index of the second involved player

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful