CBTAudioStreamer Class Reference
class CBTAudioStreamer : public CBase |
BT Audio Streamer class.
This class implements the audio streaming over A2DP. It acts as an interface between the controller, BT Audio Adaptation and RTP API. It uses helper class CBTAudioStreamSender to handle the frame contruction and sending.
btaudiostreamer.lib
- Since
- S60 v3.1
Constructor & Destructor Documentation
CBTAudioStreamer()
CBTAudioStreamer | ( | ) | [private] |
~CBTAudioStreamer()
~CBTAudioStreamer | ( | ) | [virtual] |
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
NotifyBufferSent(const TDesC8 &)
void | NotifyBufferSent | ( | const TDesC8 & | aBuffer | ) | |
From MBTAudioStreamSenderObserver. This method is used for reporting that the referred buffer has been sent. This tells the data producer that we're ready to receive more data.
Parameters
const TDesC8 & aBuffer | refers to the original bufffer that we received in Receive method. |
NotifyErrorSending(const TDesC8 &)
void | NotifyErrorSending | ( | const TDesC8 & | aBuffer | ) | |
From MBTAudioStreamSenderObserver. This method is used for reporting that the buffer wasn't sent because of an error. This method then informs the error observer class.
Parameters
const TDesC8 & aBuffer | refers to the original bufffer that we received in Receive method. |
Receive(const TDesC8 &)
Parameters
const TDesC8 & aBuffer | contains the audio data frames. |
Receive(const TDesC8 &, TTimeIntervalMicroSeconds)
Parameters
const TDesC8 & aBuffer | contains the audio data frames. |
TTimeIntervalMicroSeconds aTimestamp | The timestamp of the audio data frames. 34 minutes max. interval should not be a problem to us. |
SetNewFrameLength(const TUint, const TUint)
IMPORT_C TInt | SetNewFrameLength | ( | const TUint | aFrameLength, |
| const TUint | aTargetBitrate |
| ) | |
A method for preparing the BT Audio Streamer for incoming data.
Parameters
const TUint aFrameLength | Length of a single audio data frame, needed for calculating the send packet size. |
const TUint aTargetBitrate | |
StartL(RSocket &, const TUint, CBTAudioStreamInputBase *, const TUint)
A method for preparing the BT Audio Streamer for incoming data.
Parameters
RSocket & aSocket | Bluetooth socket instance, needed for getting the RTP sending class instance. |
const TUint aFrameLength | Length of a single audio data frame, needed for calculating the send packet size. |
CBTAudioStreamInputBase * aAudioInput | The API where the data is received and where the sending of packets will be confirmed. |
const TUint aTargetBitrate | |
Stop()
A method for cleaning up the BT Audio Streamer after streaming data.
Member Data Documentation
CBTAudioStreamInputBase * iAudioInput
This stores a pointer to the audio input interface. After a buffer has been processed, this interface must be informed.
RRtpSession
iRtpSession
RTP session object that is needed for sending RTP frames.
CBTAudioStreamSender * iSender
This points to a helper class that handles the sending of a frame. Own.
TBool
iStarted
This stores the state of the streamer.
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.