Copyright © 2001-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 SoundComposer object and the How to compose a sound tutorial.

 

 

Syntax

 

[Visual Basic]

control.SoundGenerator.ItemSoundFileVolumeSmoothingSet (

nPlayer as Integer,

nUniqueId as Long,

nSlideDurationStartMs as Long,

nSlideDurationEndMs as Long

) as enumErrorCodes


 

[C++]

short control.SoundGenerator.ItemSoundFileVolumeSmoothingSet (

short nPlayer,

long nUniqueId,

long nSlideDurationStartMs,

long nSlideDurationEndMs

);


 

Parameter

Description

 

 

nPlayer

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.