Copyright © 2008-2018 MultiMedia Soft

PlaySoundRange method

Previous pageReturn to chapter overviewNext page

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.

 

A successful call to this method will fire the SoundPlaybackPlaying event. Once the playback session has been performed completely, the control will fire the SoundPlaybackDone event.

 

 

Syntax

 

[Visual Basic]

control.PlaySoundRange (

nFromPosition as Long,

nToPosition as Long

) as enumErrorCodes


 

[C++]

short control.PlaySoundRange (

long nFromPosition,

long 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 error code meaning

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.