class CBTAudioStreamInputBase : public CBase |
This class specifies the interface for receiving audio data from audio subsystem.
This class contains the interface definition. It can't be instantiated directly, but instead the implementation is done in the class inherited from this class.
Also, the factory method for the base class must be implemented by the implementator of this interface.
Public Member Functions | |
---|---|
void | BufferEmptied (const TDesC8 &) |
TInt | Connect () |
void | Disconnect () |
TAny * | EncoderInterface ( TUid ) |
IMPORT_C CBTAudioStreamInputBase * | NewL ( MBTAudioStreamObserver &, MBTAudioErrorObserver &) |
TInt | SetFormat ( TFourCC ) |
TInt | Start () |
void | Stop () |
void | BufferEmptied | ( | const TDesC8 & | aBuffer | ) | [pure virtual] |
This method is called when the client has processed the buffer it got from the Receive method.
See BT Audio Adaptation API and BT Audio Adaptation Design specifications for detailed explanation.
const TDesC8 & aBuffer | refers to the buffer that was received earlier in the Receive method. |
TInt | Connect | ( | ) | [pure virtual] |
This method is for connecting to the audio subsystem.
See BT Audio Adaptation API and BT Audio Adaptation Design specifications for detailed explanation.
void | Disconnect | ( | ) | [pure virtual] |
This method is for disconnecting from the audio subsystem.
See BT Audio Adaptation API and BT Audio Adaptation Design specifications for detailed explanation.
TAny * | EncoderInterface | ( | TUid | aInterfaceId | ) | [pure virtual] |
This method is for passing the custom interfaces that are needed sometimes for configuring the hardware encoder.
See BT Audio Adaptation API and BT Audio Adaptation Design specifications for detailed explanation.
TUid aInterfaceId | specifies the id of custom interface that the client wants to get. |
IMPORT_C CBTAudioStreamInputBase * | NewL | ( | MBTAudioStreamObserver & | aStreamObserver, |
MBTAudioErrorObserver & | aErrorObserver | |||
) | [static] |
MBTAudioStreamObserver & aStreamObserver | |
MBTAudioErrorObserver & aErrorObserver |
TInt | SetFormat | ( | TFourCC | aDesiredFourCC | ) | [pure virtual] |
This method is for choosing the encoder for the audio data.
See BT Audio Adaptation API and BT Audio Adaptation Design specifications for detailed explanation.
TFourCC aDesiredFourCC | specifies the encoder that the client wants to use. |
TInt | Start | ( | ) | [pure virtual] |
This method is for starting the recording from the audio subsystem.
See BT Audio Adaptation API and BT Audio Adaptation Design specifications for detailed explanation.
void | Stop | ( | ) | [pure virtual] |
This method is for stopping the recording from the audio subsystem.
See BT Audio Adaptation API and BT Audio Adaptation Design specifications for detailed explanation.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.