Copyright © 2006-2019 MultiMedia Soft

RecordedSound.PlayRange method

Previous pageReturn to chapter overviewNext page

Remarks

 

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 class section.

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

 

 

Syntax

 

[Visual Basic]

Public Function PlayRange (

nStartPosition as Int32,

nEndPosition as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes PlayRange (

Int32 nStartPosition,

Int32 nEndPosition

);


 

[C++]

public: enumErrorCodes PlayRange (

Int32 nStartPosition,

Int32 nEndPosition

);


 

Parameter

Description

 

 

nStartPosition

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

nEndPosition

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.