CDevTTSAudio Class Reference
class CDevTTSAudio : public CBase
|
Audio playback functionality for DevTTS.
Constructor & Destructor Documentation
CDevTTSAudio(MDevTTSAudioObserver &, TInt)
~CDevTTSAudio()
~CDevTTSAudio
|
(
|
)
|
[virtual]
|
Member Functions Documentation
Balance()
Returns the current balance setting.
BufferToBeEmptied(CMMFBuffer *)
From
MDevSoundObserver::BufferToBeEmptied
Handles
CMMFDevSound
object's data request event. Called when the buffer, aBuffer gets filled while recording or converting. The observer should notify
CMMFDevSound
object as quickly as possible after data in the buffer is processed by calling RecordData(), otherwise the implementation might callback method
RecordError()
on derived class object with error code KErrOverflow.
BufferToBeFilled(CMMFBuffer *)
Clear()
Clears the audio device resources. Counter part of InitializeL.
ConfigL(TUint, TUint, TBool, TUint)
Configures the audio device. Method is synchronous.
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
By default Symbian 2nd phase constructor is private.
ConvertError(TInt)
void
|
ConvertError
|
(
|
TInt
|
aError
|
)
|
|
From
MDevSoundObserver::ConvertError
Handles conversion completion or cancel event. Called when an attempt to convert data from source format to destination format has completed, successfully or otherwise.
DeviceMessage(TUid, const TDesC8 &)
void
|
DeviceMessage
|
(
|
TUid
|
aMessageType,
|
|
const
TDesC8
&
|
aMsg
|
|
)
|
|
Parameters
TUid
aMessageType
|
Defines the type of message. Used to determine how to interpret the contents of aMsg.
|
const
TDesC8
& aMsg
|
Message that is packed in the Descriptor format.
|
InitializeComplete(TInt)
void
|
InitializeComplete
|
(
|
TInt
|
aError
|
)
|
|
InitializeL()
Initializes the audio device. Method is asynchronous. MDevTTSAudioObserver::InitializeComplete() called when initialization is ready.
NewL(MDevTTSAudioObserver &, TInt)
Pause()
Pauses the ongoing playback operation
PlayData(TBool)
void
|
PlayData
|
(
|
TBool
|
aLastBuffer
|
)
|
|
Plays the filled buffer, Should be called when BufferToBeFilled callback has filled the requested buffer.
PlayError(TInt)
void
|
PlayError
|
(
|
TInt
|
aError
|
)
|
|
From
MDevSoundObserver::PlayError
Handles play completion or cancel event. Called when an attempt to play audio sample has completed, successfully or otherwise.
PlayInitL()
Initialises the audio playback process.
RecordError(TInt)
void
|
RecordError
|
(
|
TInt
|
aError
|
)
|
|
From
MDevSoundObserver::RecordError
Handles record completion or cancel event. Called when an attempt to record audio sample has completed, successfully or otherwise.
SendEventToClient(const TMMFEvent &)
void
|
SendEventToClient
|
(
|
const
TMMFEvent
&
|
aEvent
|
)
|
|
SetAudioOutputL(TInt)
void
|
SetAudioOutputL
|
(
|
TInt
|
aAudioOutput
|
)
|
|
Sets the audio output routing
SetAudioPriority(TInt, TDevTTSAudioPreference)
void
|
SetAudioPriority
|
(
|
TInt
|
aPriority,
|
|
TDevTTSAudioPreference
|
aPref
|
|
)
|
|
Sets the priority for audio playback.
Parameters
TInt
aPriority
|
|
TDevTTSAudioPreference
aPref
|
|
SetBalance(TInt)
void
|
SetBalance
|
(
|
TInt
|
aVolume
|
)
|
|
Sets the playback balance.
SetVolume(TInt)
void
|
SetVolume
|
(
|
TInt
|
aVolume
|
)
|
|
Sets the playback volume. Range is from 0 (minumum) to
MaxVolume()
. Out of range values will be discarded.
SetVolumeRamp(const TTimeIntervalMicroSeconds &)
Sets the volume ramp duration
Stop()
Stops the ongoing playback operation.
ToneFinished(TInt)
void
|
ToneFinished
|
(
|
TInt
|
aError
|
)
|
|
Volume()
Returns the current volume setting.
Member Data Documentation
CAudioOutput * iAudioOutput
TMMFPrioritySettings
iAudioPriority
MDevTTSAudioObserver & iObserver
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.