Copyright © 2005-2018 MultiMedia Soft

FaderObject class

Previous pageReturn to chapter overviewNext page

The FaderObject class, accessible through the control's Fader property, contains information needed to operate the embedded Automatic Fader.

 

It can be used at Run-time in order to create and operate the embedded Fader and to access its Display property. For details about using the Automatic Fader refer to the How to use the Automatic Fader section.

 

The FaderObject class is implemented through the following methods and properties:

 

Methods

 

Init

Exit

FadeInTargetVolumeGet

FadeInTargetVolumeSet

FadeInVolumeCurveSet

FadeInVolumeCurveSetEx

FadeOutVolumeCurveSet

FadeOutVolumeCurveSetEx

PlayListUseSingle

StartManualFading

Stop

 

Properties

 

FadeInEnabled

FadeOutEnabled

FadeStartFromEnd

FadeOutLength

FadeInLength

FadeInSeekPos

FadeInDelayFromMixStart

FadeOutDelayFromMixStart

FadeOutMode

Display

TotalMixingTime

CheckItemsDurationOnStart

 

The FaderObject class is implemented as an "expandable object" so the sub-properties of the Fader property can be set at Design-time using the "Properties" toolbar of Visual Studio.NET like in the screenshot below:

 

adjstudnet_i00005d

 

The following code snippets show how to initialise and change settings for this object in your code at Runtime. These examples assume that you have placed a control named audioDjStudio1 on a form or dialog and that you want to change a couple of Fader settings (fade-in duration set to 3000 milliseconds and fade-out duration set to 4000 milliseconds).

 

Visual Basic.NET

 

Here follows the code needed to perform the requested operations

 

' initialise the Fader on player 0 and player 1

audioDjStudio1 .Fader.Init (AudioDjStudio.enumFadeTypes.FADE_SINGLE, 0, 1)

 

' set the fade-in and fade-out duration

audioDjStudio1 .Fader.FadeInLength = 3000

audioDjStudio1 .Fader.FadeOutLength = 4000

 

Visual C#.NET

 

Here follows the code needed to perform the requested operations

 

// initialise the Fader on player 0 and player 1

audioDjStudio1 .Fader.Init (AudioDjStudio.enumFadeTypes.FADE_SINGLE, 0, 1);

 

// set the fade-in and fade-out duration

audioDjStudio1 .Fader.FadeInLength = 3000;

audioDjStudio1 .Fader.FadeOutLength = 4000;