Remarks
Plays a specified range of the sound under editing. This method doesn't have any effect and returns an error if the component is initialized through the InitEditorNoPlayback method.
A playback session can be paused through the PauseSound method and stopped through the StopSound method.
Once the playback session has been performed completely, the CallbackSoundPlaybackDone delegate is invoked.
For further details about callback delegates see the How to synchronize the container application with the API tutorial.
Syntax
[Visual Basic]
Public Function PlaySoundRange (
nFromPosition as Int32,
nToPosition as Int32
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes PlaySoundRange (
Int32 nFromPosition,
Int32 nToPosition
);
|
|
[C++]
public: enumErrorCodes PlaySoundRange (
Int32 nFromPosition,
Int32 nToPosition
);
|
|
Parameter
|
Description
|
|
|
nFromPosition
|
Start position, expressed in milliseconds, of the sound range to play.
|
nToPosition
|
End position, expressed in milliseconds, of the sound range to play. If this parameter is set to -1, the playback session will continue until reaching the sound's 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.
|
|