Copyright © 2006-2018 MultiMedia Soft

RecordedSound.PlayRange method

Previous pageReturn to chapter overviewNext page



Plays the given range inside the last recorded sound: if sound data resulting from a recording session has been stored in memory, this method will start a playback session using recorded sound data in memory; if sound data have been stored into a disk file, this method will load and will automatically play the file.


A playback session can be paused through the RecordedSound.Pause method and stopped through the RecordedSound.Stop 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.


For further details about recorded sound methods refer to the RecordedSound object section.

For further details see the How to perform a recording session section.





[Visual Basic]

control.RecordedSound.PlayRange (

nStartPosition as Long,

nEndPosition as Long

) as enumErrorCodes



short control.RecordedSound.PlayRange (

long nStartPosition,

long nEndPosition









Start position, expressed in milliseconds, of the sound range to play.


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






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.