PlayListItemVolAutomSetMixPos method |
|
Remarks
Sets volume automation mixing positions to an item of the playlist. Current mixing positions can be obtained through the PlayListItemVolAutomGetMixPos method.
The volume point can have been previously added through the PlayListItemVolAutomPointAdd method or as a result of a playlist loading through the PlayListLoad method.
This method will return an error if the playlist has not been created with the PlayListCreateAutomation method or loaded with the PlayListLoad or PlayListLoadSync methods having the nMode parameter set to PLAYLIST_AUTOMATION_MODE.
For further details about playlists management see the How to create and manage a playlist tutorial.
For details about using Volume Automation refer to the How to manage Volume Automation tutorial.
Syntax
[Visual Basic] control.PlayListItemVolAutomSetMixPos ( nPlayer as Integer, nItem as Integer, nPositionUnit as enumVolumeAutomationPositionUnits, fStartPos as Single, fMixPos as Single, fEndPos as Single ) as enumErrorCodes |
[C++] short control.PlayListItemVolAutomSetMixPos ( short nPlayer, short nItem, short nPositionUnit, float fStartPos, float fMixPos, float fEndPos ); |
Parameter |
Description |
||||||||||||
|
|
||||||||||||
nPlayer |
Number representing the zero-based index of the involved player |
||||||||||||
nItem |
Number representing the zero-based index of the item inside the playlist. The number of available items can be obtained using the PlayListGetCount method. |
||||||||||||
nPositionUnit |
The unit used to define the position parameters fStartPos,fMixPos and fEndPos below. Supported values are the following:
|
||||||||||||
fStartPos |
Number representing the start position expressed in nPositionUnit. This parameter is the equivalent of the StartPosSec/StartPosMs/StartPosPerc attributes of the Item sub-key of the PDJ format. |
||||||||||||
fMixPos |
Number representing the mixing position expressed in nPositionUnit. This parameter is the equivalent of the MixPosSec/MixPosMs/MixPosPerc attributes of the Item sub-key of the PDJ format. |
||||||||||||
fEndPos |
Number representing the end position expressed in nPositionUnit. This parameter is the equivalent of the EndPosSec/EndPosMs/EndPosPerc attributes of the Item sub-key of the PDJ format. |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful. |