Copyright © 2008-2023 MultiMedia Soft

SetLoadingRange method

Previous pageReturn to chapter overviewNext page

Remarks

 

Defines the effective range that will be loaded from sound files opened by next calls to LoadSound, LoadSoundFromRawFile, LoadSoundFromMemory, LoadSoundFromRawMemory, LoadSoundFromClipboard or LoadSoundFromRecordingSession methods.

This method is useful if you want to extract a small portion of an existing sound file for editing purposes.

 

 

Syntax

 

[Visual Basic]

control.SetLoadingRange (

nStartPosition as Long,

nEndPosition as Long

) as enumErrorCodes


 

[C++]

short control.SetLoadingRange (

long nStartPosition,

long nEndPosition

);


 

 

Parameter

Description

 

 

nStartPosition

Number representing the start position, expressed in milliseconds, of the loading range

nEndPosition

Number representing the end position, expressed in milliseconds, of the loading range: if this parameter is set to -1, the file will be loaded till its end.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to see the error code meaning

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.