Copyright © 2005-2019 MultiMedia Soft

SoundComposer.ItemSoundFileVolumeSmoothingSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Applies a volume smoothing at the beginning and at the end of the given sound file item. The current volume smoothing can be obtained through the SoundComposer.ItemVolumeSmoothingGet 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 ItemSoundFileVolumeSmoothingSet (

nPlayerIndex as Int16,

nUniqueId as Int32,

nSlideDurationStartMs as Int32,

nSlideDurationEndMs as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes ItemSoundFileVolumeSmoothingSet (

Int16 nPlayerIndex,

Int32 nUniqueId,

Int32 nSlideDurationStartMs,

Int32 nSlideDurationEndMs

);


 

[C++]

public: enumErrorCodes ItemSoundFileVolumeSmoothingSet (

Int16 nPlayerIndex,

Int32 nUniqueId,

Int32 nSlideDurationStartMs,

Int32 nSlideDurationEndMs

);


 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the player that owns the sound composer session

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.

nSlideDurationStartMs

Duration of the volume fade-in, expressed in milliseconds, at the beginning of the item

nSlideDurationEndMs

Duration of the volume fade-out, expressed in milliseconds, at the end of the item

 

 

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.