Location:
MdaAudioSampleEditor.h
Link against: MediaClientAudio.lib
CMdaAudioClipUtility
Supported from 5.0
A utility class which implements behaviour which is common to both the audio recorder and the audio converter.
|
Defined in CMdaAudioClipUtility
:
ClearPlayWindow()
, Close()
, CropL()
, Duration()
, ENotReady
, EOpen
, EPlaying
, ERecording
, PlayL()
, Position()
, RecordL()
, RecordTimeAvailable()
, SetPlayWindow()
, SetPosition()
, SetRepeats()
, State()
, Stop()
, TState
, TypeL()
Inherited from CBase
:
operator new()
virtual void RecordL();
Starts appending new audio sample data.
The new audio sample data is appended to the existing audio sample data in the same format as the existing audio sample data. If existing data is to be overwritten, then it should be cropped to the appropriate length before appending the new data.
Note, before starting to record, make sure that the gain is set
by calling CMdaAudioRecorderUtility::SetGain()
, as the initial
gain is undefined. The gain might also have been modified by another client
application.
virtual void PlayL();
Begins playback of audio sample data at the current volume, gain and priority levels.
virtual void Stop();
Stops the playback or recording operation.
The operation is stopped at the current location. For a playback operation, the head is positioned at the last played data.
virtual void CropL();
Deletes all audio sample data after the current head position. The effects of the function cannot be undone.
The function is synchronous and can leave if there is a problem. The leave code depends on the configuration.
virtual void SetPosition(const TTimeIntervalMicroSeconds& aPosition);
Sets the head position.
The playback head is moved to a position which is defined in
terms of a time interval measured from the beginning of the audio sample data.
A subsequent call to CMdaAudioClipUtility::PlayL()
starts from
this new position.
|
virtual void SetPlayWindow(const TTimeIntervalMicroSeconds& aStart, const TTimeIntervalMicroSeconds& aEnd);
Defines a window on the audio sample data.
The window is defined in terms of a start and end time. All subsequent playing, position setting and position querying requests are mapped to this window.
|
virtual void ClearPlayWindow();
Removes any window defined on the audio sample data.
All subsequent playing, position setting and position querying requests are mapped to the whole of the audio sample data.
virtual void SetRepeats(TInt aRepeatNumberOfTimes, const TTimeIntervalMicroSeconds& aTrailingSilence);
Sets the number of times the audio sample is to be repeated during the play operation.
A period of silence can follow each playing of the audio sample. The audio sample can be repeated indefinitely or until stopped.
|
virtual const TTimeIntervalMicroSeconds& Position();
Returns the current head position.
The head position is defined in terms of a time interval measured from the beginning of the audio sample data.
|
virtual const TTimeIntervalMicroSeconds& RecordTimeAvailable();
Returns the recording time available for the selected file or descriptor and encoding format.
|
virtual const TTimeIntervalMicroSeconds& Duration();
Returns the duration of the audio sample data.
|
virtual TState State();
Returns the current state of the audio sample data.
|
virtual CMdaAudioType* TypeL();
Constructs and returns the format, codec and audio settings for the audio object currently open.
The function leaves if there is no open audio object.
|
TState
Defines the possible state of the audio data sample.
|