SoundComposer.ItemSoundFileVolumeFadingGet method |
|
Remarks
Obtains parameters of the requested volume fading that will be applied to the given sound file item when it will be merged into the session's stream. A specific volume fading can be predisposed through the SoundComposer.ItemSoundFileVolumeFadingSet method.
For further details about sound composing see the the SoundComposerMan class and the How to compose a sound tutorial.
Syntax
[Visual Basic] Public Function ItemSoundFileVolumeFadingGet ( nUniqueId as Int32, bFadeIn as Boolean, ByRef nFadeLengthMs as Int32, ByRef nCurveType as enumVolumeCurves, ByRef nLeftX as Int32, ByRef nLeftY as Int32, ByRef nRightX as Int32, ByRef nRightY as Int32 ) as enumErrorCodes |
[C#] public enumErrorCodes ItemSoundFileVolumeFadingGet ( Int32 nUniqueId, bool bFadeIn, ref Int32 nFadeLengthMs, ref enumVolumeCurves nCurveType, ref Int32 nLeftX, ref Int32 nLeftY, ref Int32 nRightX, ref Int32 nRightY ); |
[C++] public: enumErrorCodes ItemSoundFileVolumeFadingGet ( Int32 nUniqueId, bool bFadeIn, Int32 __gc *nFadeLengthMs, enumVolumeCurves __gc *nCurveType, Int32 __gc *nLeftX, Int32 __gc *nLeftY, Int32 __gc *nRightX, Int32 __gc *nRightY ); |
Parameter |
Description |
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
nUniqueId |
The unique identifier of the sound file item previously returned by the call to one of the following methods: SoundComposer.ItemSoundFileAdd, SoundComposer.ItemSoundFileMemoryAdd, SoundComposer.ItemSoundFileRawAdd, SoundComposer.ItemSoundFileMemoryRawAdd, SoundComposer.ItemSoundFileFromEditorAdd, or SoundComposer.ItemSoundFileFromRecorderAdd. |
||||||||||||||||||||||||
bFadeIn |
Boolean value specifying if the fading is a fade-in or a fade-out. Supported values are the following:
|
||||||||||||||||||||||||
nFadeLengthMs |
Reference that, on return from the method call, will contain the length of the fade expressed in milliseconds |
||||||||||||||||||||||||
nCurveType |
Reference that, on return from the method call, will contain the type of curve applied to perform the volume fading. Supported values are the following:
|
||||||||||||||||||||||||
nLeftX |
Reference that, on return from the method call, will contain the horizontal position, expressed in percentage, of the left control point of the Bézier curve. This parameter is ignored when the nCurveType parameter is set to a value different from VOLUME_CURVE_CUSTOM. |
||||||||||||||||||||||||
nLeftY |
Reference that, on return from the method call, will contain the vertical position, expressed in percentage, of the left control point of the Bézier curve. This parameter is ignored when the nCurveType parameter is set to a value different from VOLUME_CURVE_CUSTOM. |
||||||||||||||||||||||||
nRightX |
Reference that, on return from the method call, will contain the horizontal position, expressed in percentage, of the right control point of the Bézier curve. This parameter is ignored when the nCurveType parameter is set to a value different from VOLUME_CURVE_CUSTOM. |
||||||||||||||||||||||||
nRightY |
Reference that, on return from the method call, will contain the vertical position, expressed in percentage, of the right control point of the Bézier curve. This parameter is ignored when the nCurveType parameter is set to a value different from VOLUME_CURVE_CUSTOM. |
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. |