Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: mdaaudiooutputstream.h
Link against: n/a

Class MMdaAudioOutputStreamCallback

MMdaAudioOutputStreamCallback

Support

Supported from 6.1

Description

An interface class that notifies the media server client of the progress of audio streaming.

It should be implemented by users of the CMdaAudioOutputStream class. An object that implements this interface is passed to CMdaAudioOutputStream::NewL().

Defined in MMdaAudioOutputStreamCallback:
MaoscBufferCopied(), MaoscOpenComplete(), MaoscPlayComplete()


Member functions


MaoscPlayComplete()

virtual void MaoscPlayComplete(TInt aError) = 0;

Description

A callback function that is called when playback terminates.

If the end of the sound data has been reached, the function returns KErrUnderFlow. If playback terminates for any other reason, the function returns an appropriate error value.

Parameters

TInt aError

An error code that indicates why playback terminated.


MaoscBufferCopied()

virtual void MaoscBufferCopied(TInt aError, const TDesC8& aBuffer) = 0;

Description

A callback function that is called when a descriptor has been copied to the server.

It is also called when an error has occurred or when the client has stopped the stream playing before the descriptor has been fully copied (by calling CMdaAudioOutputStream::Stop()).

This function indicates to the client that it is safe to destroy the buffer passed to CMdaAudioOutputStream::WriteL(). It can also be used to make the next call to WriteL().

Parameters

TInt aError

KErrNone if the copy succeeded, otherwise one of the system error codes. KErrAbort indicates that the client has stopped the stream playing before the descriptor has been copied.

const TDesC8& aBuffer

A reference to the descriptor that has just been copied to the server.


MaoscOpenComplete()

virtual void MaoscOpenComplete(TInt aError) = 0;

Description

A callback function that is called when CMdaAudioOutputStream::Open() has completed, indicating that the audio output stream is ready to receive data.

Parameters

TInt aError

KErrNone if the open succeeded, otherwise one of the system error codes.