Copyright © 2005-2018 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]

Public Function Init (

nFadeType as enumFadeTypes,

nIndexPlayerA as Int16,

nIndexPlayerB as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes Init (

enumFadeTypes nFadeType,

Int16 nIndexPlayerA,

Int16 nIndexPlayerB

);


 

[C++]

public: enumErrorCodes Init (

enumFadeTypes nFadeType,

Int16 nIndexPlayerA,

Int16 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 (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.