CMMFMdaAudioOutputStream Class Reference
class CMMFMdaAudioOutputStream : public CBase |
Nested Classes and Structures
Constructor & Destructor Documentation
CMMFMdaAudioOutputStream(MMdaAudioOutputStreamCallback &)
~CMMFMdaAudioOutputStream()
~CMMFMdaAudioOutputStream | ( | ) | [virtual] |
Member Functions Documentation
BufferToBeEmptied(CMMFBuffer *)
void | BufferToBeEmptied | ( | CMMFBuffer * | aBuffer | ) | [virtual] |
BufferToBeFilled(CMMFBuffer *)
void | BufferToBeFilled | ( | CMMFBuffer * | aBuffer | ) | [virtual] |
Called when sound device need data
CancelRegisterAudioResourceNotification(TUid)
TInt
| CancelRegisterAudioResourceNotification | ( | TUid | aNotificationEventId | ) | |
Parameters
TUid aNotificationEventId | |
ConstructL(TInt, TInt)
void | ConstructL | ( | TInt | aPriority, |
| TInt | aPref |
| ) | [private] |
ConvertError(TInt)
void | ConvertError | ( | TInt | aError | ) | [virtual] |
DeviceMessage(TUid, const TDesC8 &)
void | DeviceMessage | ( | TUid | aMessageType, |
| const TDesC8 & | aMsg |
| ) | [virtual] |
DoShutDownTimerComplete()
void | DoShutDownTimerComplete | ( | ) | [private] |
EmptyFifo(TInt)
void | EmptyFifo | ( | TInt | aError | ) | [private] |
GetBalanceL()
To get the current balance value. This function may not return the same value as passed to SetBalanceL depending on the internal implementation in the underlying components.
GetBytes()
To return the current number of bytes rendered by audio hardware
InitializeComplete(TInt)
void | InitializeComplete | ( | TInt | aError | ) | [virtual] |
To be called when intialize stream complete
MaxVolume()
To get the maximum volume level
NewL(MMdaAudioOutputStreamCallback &)
2 phase construction function
NewL(MMdaAudioOutputStreamCallback &, TInt, TInt)
Open(TMdaPackage *)
Open a audio ouptut stream
Pause()
To pause send data to stream
PlayError(TInt)
void | PlayError | ( | TInt | aError | ) | [virtual] |
Called when play operation complete, successfully or otherwise
Position()
To get the current position in the data stream
RealSetAudioPropertiesL(TInt, TInt)
void | RealSetAudioPropertiesL | ( | TInt | aSampleRate, |
| TInt | aChannels |
| ) | [private] |
RecordError(TInt)
void | RecordError | ( | TInt | aError | ) | [virtual] |
RegisterAudioResourceNotification(MMMFAudioResourceNotificationCallback &, TUid, const TDesC8 &)
Resume()
To resume send data to stream
SendEventToClient(const TMMFEvent &)
void | SendEventToClient | ( | const TMMFEvent & | aEvent | ) | [virtual] |
SetAudioPropertiesL(TInt, TInt)
void | SetAudioPropertiesL | ( | TInt | aSampleRate, |
| TInt | aChannels |
| ) | |
Set audio output stream properties
SetBalanceL(TInt)
Set audio output stream balance
SetDataTypeL(TFourCC)
void | SetDataTypeL | ( | TFourCC | aAudioType | ) | |
SetPriority(TInt, TInt)
void | SetPriority | ( | TInt | aPriority, |
| TInt | aPref |
| ) | |
Set audio output stream priority
SetVolume(const TInt)
void | SetVolume | ( | const TInt | aVolume | ) | |
Set audio output stream volume to the specified value
ShutDownTimerComplete(TAny *)
TInt
| ShutDownTimerComplete | ( | TAny * | aSamplesPlayed | ) | [private, static] |
StartPlayL()
void | StartPlayL | ( | ) | [private] |
If the audio stream is stopped, then notify the CDevSound to initilised play. The CDevSound will automatically start calling back for buffers.
StartShutDownTimer()
void | StartShutDownTimer | ( | ) | [private] |
Stop()
To stop write data to stream
ToneFinished(TInt)
void | ToneFinished | ( | TInt | aError | ) | [virtual] |
Volume()
To get the current volume level
WriteL(const TDesC8 &)
void | WriteL | ( | const TDesC8 & | aData | ) | |
To write data to output stream Note that if framed data eg gsm610 is being streamed then the buffer size of aData should contain an intiger number of frames
Member Enumerations Documentation
Enum TIsOpenState
Enumerators
EIsNotOpen | |
EIsOpening | |
EIsOpen | |
Enum TState
Enumerators
EStopped | |
EPlaying | |
EStopping | |
EPaused | |
Member Data Documentation
CActiveCallback * iActiveCallback
CActiveSchedulerWait * iActiveSchedulerWait
MMMFAudioResourceNotificationCallback * iAudioResourceNotificationCallBack
MMdaAudioOutputStreamCallback & iCallback
TInt
iCurrentSamplesPlayed
TInt
| iCurrentSamplesPlayed | [private] |
TBool
iDevSoundIgnoresUnderflow
TBool
| iDevSoundIgnoresUnderflow | [private] |
TUid
iEventHolder
TUid
| iEventHolder | [private] |
CMMFFifo< const TDesC8 > * iFifo
TInt
iFifoItemPos
TInt
| iFifoItemPos | [private] |
TBool
iInitCallFrmSetDataType
TBool
| iInitCallFrmSetDataType | [private] |
TInt
iInitializeState
TInt
| iInitializeState | [private] |
TIsOpenState
iIsOpenState
TBool
iKeepOpenAtEnd
TBool
| iKeepOpenAtEnd | [private] |
TBuf8< 256 > iNotificationDataHolder
TBuf8< 256 > | iNotificationDataHolder | [private] |
TTimeIntervalMicroSeconds
iPosition
TInt
iSampleRate
TInt
| iSampleRate | [private] |
CPeriodic * iShutDownTimer
TBool
iValuesCached
TBool
| iValuesCached | [private] |
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.