Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



How to retrieve the number of samples played while playing audio

To find out the number of samples that have been played so far, use the CMMFDevSound::SamplesPlayed() query method:

IMPORT_C TInt SamplesPlayed();

This returns the number of samples played since the last CMMFDevSound::PlayInitL() call.

Note: The CMMFDevSound::SamplesPlayed() query returns a zero value until the start of the play cycle. The count of samples played is returned in the playing and paused states.

For information about playing audio, see How to play audio.