Location:
MdaAudioSampleEditor.h
Link against: MediaClientAudio.lib
CMdaAudioRecorderUtility
Supported from 5.0
Plays back, records and edits audio sample data.
The class offers an interface to play, record and edit audio sample
data. This data can be supplied either in a file or as a descriptor. The
functions that start and stop playback and recording are defined in the base
class CMdaAudioClipUtility
.
While this class is abstract, the static NewL()
function constructs, initialises and returns a pointer to an instance of a
concrete class derived from this abstract class. This concrete class is part of
the media server implementation and is private.
If a client only needs to play back existing audio sample data, it may be better to use the simpler Audio Sample Player API.
|
Defined in CMdaAudioRecorderUtility
:
EDefault
, ELocal
, ETelephonyMixed
, ETelephonyNonMixed
, ETelephonyOrLocal
, MaxGain()
, MaxVolume()
, NewL()
, OpenDesL()
, OpenFileL()
, OpenL()
, SetAudioDeviceMode()
, SetGain()
, SetVolume()
, SetVolumeRamp()
, TDeviceMode
Inherited from CBase
:
operator new()
Inherited from CMdaAudioClipUtility
:
ClearPlayWindow()
,
Close()
,
CropL()
,
Duration()
,
ENotReady
,
EOpen
,
EPlaying
,
ERecording
,
PlayL()
,
Position()
,
RecordL()
,
RecordTimeAvailable()
,
SetPlayWindow()
,
SetPosition()
,
SetRepeats()
,
State()
,
Stop()
,
TState
,
TypeL()
static CMdaAudioRecorderUtility* NewL(MMdaObjectStateChangeObserver& aObserver, CMdaServer* aServer=NULL, TInt aPriority=EMdaPriorityNormal, TMdaPriorityPreference aPref=EMdaPriorityPreferenceTimeAndQuality);
Constructs and initialises a new instance of the audio recorder for playing, recording and editing audio sample data.
The function leaves if the audio recorder object cannot be created.
|
|
void OpenFileL(const TDesC& aFilename) = 0;
Opens a file to play back existing audio sample data.
|
void OpenDesL(const TDesC8& aData) = 0;
Opens a descriptor to play back existing audio sample data.
|
void OpenL(TMdaClipLocation* aLocation, TMdaClipFormat* aFormat, TMdaPackage* aArg1, TMdaPackage* aArg2) = 0;
Opens an audio object to play back existing audio sample data or to record new audio sample data.
|
void SetAudioDeviceMode(TDeviceMode aMode) = 0;
Sets the mode of the audio device to be used.
This determines how the API handles the configuration of the device hardware.
|
TInt MaxVolume() = 0;
Gets the maximum volume for the audio device.
This is the maximum value which can be passed to
CMdaAudioRecorderUtility::SetVolume()
.
|
void SetVolume(TInt aVolume) = 0;
Sets the playback volume for the audio device to a specified value.
|
TInt MaxGain() = 0;
Gets the maximum gain setting for the audio device.
This is the maximum value which can be passed
toCMdaAudioRecorderUtility::SetGain()
.
|
void SetGain(TInt aGain) = 0;
Sets the gain for the audio device to a specified value.
|
virtual void SetVolumeRamp(const TTimeIntervalMicroSeconds& aRampDuration) = 0;
Sets the volume increase gradient.
This defines the period over which the volume level of a played audio sample is to rise smoothly from nothing to the normal volume level.
|
TDeviceMode
Audio device mode
|