Copyright © 2006-2019 MultiMedia Soft

GetPlaybackStatus method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the current playback status.

 

This method can be used in alternative to events reporting changes of playback status (SoundPlaybackPlaying, SoundPlaybackPaused, SoundPlaybackStopped and SoundPlaybackDone) when the control has been set to work with sound pre-loading through a call to the EnableSoundPreloadForPlayback method: in order to optimize system resources, when pre-loading is disabled (default situation), the stream to play is only loaded when specifically requested through a call to the RecordedSound.Play or RecordedSound.PlayRange methods and automatically discarded from memory after a call to the RecordedSound.Stop method or when the end of the song is reached.

 

 

Syntax

 

[Visual Basic]

Public Function GetPlaybackStatus (

) as enumPlaybackStatus


 

[C#]

public enumPlaybackStatus GetPlaybackStatus (

);


 

[C++]

public: enumPlaybackStatus GetPlaybackStatus (

);


 

 

Return value

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

Other values

The current playback status.

Possible values are the following:

Mnemonic Value

Value

Meaning

PLAYBACK_NO_SOUND

0

No sound is loaded for playback.

PLAYBACK_PLAYING

1

Sound is in playback after a call to one between the RecordedSound.Play or RecordedSound.PlayRange or RecordedSound.Resume methods.

PLAYBACK_PAUSED

2

Sound is paused after a call to the RecordedSound.Pause method.

PLAYBACK_STOPPED

3

Sound is stopped after a call to the RecordedSound.Stop method or after completing playback.