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]
Public Function SetLoadingRange (
nStartPosition as Int32,
nEndPosition as Int32
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes SetLoadingRange (
Int32 nStartPosition,
Int32 nEndPosition
);
|
|
[C++]
public: enumErrorCodes SetLoadingRange (
Int32 nStartPosition,
Int32 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 last error.
|
enumErrorCodes.ERR_NOERROR (0)
|
The method call was successful.
|
|