Copyright © 2011-2019 MultiMedia Soft

SoundComposer.ItemSoundFileLoadRangeSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies the sound file loading range used when the sound file will be merged into the session's stream. The current loading range can be obtained through a call to the SoundComposer.ItemSoundFileLoadRangeGet method.

 

A call to this method will reset the effect of an eventual previous call to the SoundComposer.ItemSoundFileDurationStretch 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 ItemSoundFileLoadRangeSet (

nUniqueId as Int32,

nStartPositionMs as Int32,

nEndPositionMs as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes ItemSoundFileLoadRangeSet (

Int32 nUniqueId,

Int32 nStartPositionMs,

Int32 nEndPositionMs

);


 

[C++]

public: enumErrorCodes ItemSoundFileLoadRangeSet (

Int32 nUniqueId,

Int32 nStartPositionMs,

Int32 nEndPositionMs

);


 

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.

nStartPositionMs

The starting position, expressed in milliseconds, where the sound file loading will occur

nEndPositionMs

The ending position, expressed in milliseconds, where the sound file loading will occur

 

 

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.