class CMdaAudioConvertUtility : public CMdaAudioClipUtility |
Converts the type, sample rate and format of audio data.
The audio sample data can be supplied either in a file or as a descriptor.
Inherited Enumerations | |
---|---|
CMdaAudioClipUtility:TState |
Private Attributes | |
---|---|
CMMFMdaAudioConvertUtility * | iProperties |
void | ClearPlayWindow | ( | ) | [virtual] |
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.
5.0
IMPORT_C const CMMFControllerImplementationInformation & | ControllerImplementationInformationL | ( | ) |
void | CropFromBeginningL | ( | ) | [virtual] |
Deletes all audio sample data from the beginning of the audio clip. 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.
5.0
void | CropL | ( | ) | [virtual] |
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.
5.0
IMPORT_C void | CustomCommandAsync | ( | const TMMFMessageDestinationPckg & | aDestination, |
TInt | aFunction, | |||
const TDesC8 & | aDataTo1, | |||
const TDesC8 & | aDataTo2, | |||
TDes8 & | aDataFrom, | |||
TRequestStatus & | aStatus | |||
) |
const TMMFMessageDestinationPckg & aDestination | |
TInt aFunction | |
const TDesC8 & aDataTo1 | |
const TDesC8 & aDataTo2 | |
TDes8 & aDataFrom | |
TRequestStatus & aStatus |
IMPORT_C void | CustomCommandAsync | ( | const TMMFMessageDestinationPckg & | aDestination, |
TInt | aFunction, | |||
const TDesC8 & | aDataTo1, | |||
const TDesC8 & | aDataTo2, | |||
TRequestStatus & | aStatus | |||
) |
const TMMFMessageDestinationPckg & aDestination | |
TInt aFunction | |
const TDesC8 & aDataTo1 | |
const TDesC8 & aDataTo2 | |
TRequestStatus & aStatus |
IMPORT_C TInt | CustomCommandSync | ( | const TMMFMessageDestinationPckg & | aDestination, |
TInt | aFunction, | |||
const TDesC8 & | aDataTo1, | |||
const TDesC8 & | aDataTo2, | |||
TDes8 & | aDataFrom | |||
) |
const TMMFMessageDestinationPckg & aDestination | |
TInt aFunction | |
const TDesC8 & aDataTo1 | |
const TDesC8 & aDataTo2 | |
TDes8 & aDataFrom |
IMPORT_C TInt | CustomCommandSync | ( | const TMMFMessageDestinationPckg & | aDestination, |
TInt | aFunction, | |||
const TDesC8 & | aDataTo1, | |||
const TDesC8 & | aDataTo2 | |||
) |
const TMMFMessageDestinationPckg & aDestination | |
TInt aFunction | |
const TDesC8 & aDataTo1 | |
const TDesC8 & aDataTo2 |
const TTimeIntervalMicroSeconds & | Duration | ( | ) | [virtual] |
Returns the duration of the audio sample data.
5.0
IMPORT_C void | GetSupportedConversionBitRatesL | ( | RArray< TUint > & | aSupportedBitRates | ) |
IMPORT_C void | GetSupportedConversionNumberOfChannelsL | ( | RArray< TUint > & | aSupportedNumChannels | ) |
IMPORT_C void | GetSupportedConversionSampleRatesL | ( | RArray< TUint > & | aSupportedSampleRates | ) |
IMPORT_C void | GetSupportedDestinationDataTypesL | ( | RArray< TFourCC > & | aSupportedDestinationDataTypes | ) |
IMPORT_C CMdaAudioConvertUtility * | NewL | ( | MMdaObjectStateChangeObserver & | aObserver, |
CMdaServer * | aServer = NULL, | |||
TInt | aPriority = EMdaPriorityNormal, | |||
TInt | aPref = EMdaPriorityPreferenceTimeAndQuality | |||
) | [static] |
MMdaObjectStateChangeObserver & aObserver | |
CMdaServer * aServer = NULL | |
TInt aPriority = EMdaPriorityNormal | |
TInt aPref = EMdaPriorityPreferenceTimeAndQuality |
void | OpenL | ( | const TDesC & | aPrimaryFile, |
const TDesC & | aSecondaryFile | |||
) | [virtual] |
void | OpenL | ( | const TDesC & | aPrimaryFile, |
TMdaClipLocation * | aLocation, | |||
TMdaClipFormat * | aFormat, | |||
TMdaPackage * | aArg1 = NULL, | |||
TMdaPackage * | aArg2 = NULL | |||
) | [virtual] |
const TDesC & aPrimaryFile | |
TMdaClipLocation * aLocation | |
TMdaClipFormat * aFormat | |
TMdaPackage * aArg1 = NULL | |
TMdaPackage * aArg2 = NULL |
void | OpenL | ( | TMdaClipLocation * | aPriLocation, |
TMdaClipLocation * | aSecLocation, | |||
TMdaClipFormat * | aPriFormat, | |||
TMdaClipFormat * | aSecFormat, | |||
TMdaPackage * | aPriArg1 = NULL, | |||
TMdaPackage * | aPriArg2 = NULL, | |||
TMdaPackage * | aSecArg1 = NULL, | |||
TMdaPackage * | aSecArg2 = NULL | |||
) | [virtual] |
TMdaClipLocation * aPriLocation | |
TMdaClipLocation * aSecLocation | |
TMdaClipFormat * aPriFormat | |
TMdaClipFormat * aSecFormat | |
TMdaPackage * aPriArg1 = NULL | |
TMdaPackage * aPriArg2 = NULL | |
TMdaPackage * aSecArg1 = NULL | |
TMdaPackage * aSecArg2 = NULL |
IMPORT_C void | OpenL | ( | TMdaClipLocation * | aPriLocation, |
TMdaClipLocation * | aSecLocation, | |||
TUid | aControllerUid, | |||
TUid | aDestFormatUid, | |||
TFourCC | aDestDataType | |||
) |
TMdaClipLocation * aPriLocation | |
TMdaClipLocation * aSecLocation | |
TUid aControllerUid | |
TUid aDestFormatUid | |
TFourCC aDestDataType |
void | PlayL | ( | ) | [virtual] |
Begins playback of audio sample data at the current playback position using the current volume, gain and priority settings.
5.0
const TTimeIntervalMicroSeconds & | Position | ( | ) | [virtual] |
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.
5.0
void | RecordL | ( | ) | [virtual] |
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.
5.0
const TTimeIntervalMicroSeconds & | RecordTimeAvailable | ( | ) | [virtual] |
Returns the recording time available for the selected file or descriptor and encoding format.
5.0
IMPORT_C void | SetDestinationBitRateL | ( | TUint | aBitRate | ) |
TUint aBitRate |
IMPORT_C void | SetDestinationDataTypeL | ( | TFourCC | aDataType | ) |
TFourCC aDataType |
IMPORT_C void | SetDestinationFormatL | ( | TUid | aFormatUid | ) |
TUid aFormatUid |
IMPORT_C void | SetDestinationNumberOfChannelsL | ( | TUint | aNumberOfChannels | ) |
TUint aNumberOfChannels |
IMPORT_C void | SetDestinationSampleRateL | ( | TUint | aSampleRate | ) |
TUint aSampleRate |
void | SetMaxWriteLength | ( | TInt | aMaxWriteLength = KMdaClipLocationMaxWriteLengthNone | ) | [virtual] |
Sets the maximum size for a file that is being recorded.
When this limit is reached, MMF stops recording and notifies the client application. Notification is caused by MMdaObjectStateChangeObserver::MoscoStateChangeEvent() with the error code KErrEof.
This function is provided so that applications such as recorders can limit the amount of file storage/memory that should be allocated.
5.0
TInt aMaxWriteLength = KMdaClipLocationMaxWriteLengthNone | The maximum file size in kilobytes. If the default value is used, there is no maximum file size. |
void | SetPlayWindow | ( | const TTimeIntervalMicroSeconds & | aStart, |
const TTimeIntervalMicroSeconds & | aEnd | |||
) | [virtual] |
Defines a window on the audio sample data.
The window is defined in terms of a start and end position. When the current playback position reaches the window end position, or Stop() is called, the current playback position is set to the window start position and playback stops.
The current playback position is not affected by a call to SetPlayWindow() unless it is outside the new playback window, in which case it is set to the window start or end position depending on which one is closer.
The window persists until ClearPlayWindow() is called. Loading new audio sample data without adjusting or clearing the window will result in playback errors if the window is outside the new data.
5.0
const TTimeIntervalMicroSeconds & aStart | The position defining the start of the window, measured in microseconds. If this value is less than zero, it is set to zero. If this value is greater than aEnd, then it is swapped with aEnd. |
const TTimeIntervalMicroSeconds & aEnd | The position defining the end of the window, measured in microseconds. If this value is greater than the value returned by Duration(), it is set to the value of Duration(). If this value is less than aStart, then it is swapped with aStart. |
void | SetPosition | ( | const TTimeIntervalMicroSeconds & | aPosition | ) | [virtual] |
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 PlayL() starts from this new position.
5.0
const TTimeIntervalMicroSeconds & aPosition |
void | SetRepeats | ( | TInt | aRepeatNumberOfTimes, |
const TTimeIntervalMicroSeconds & | aTrailingSilence | |||
) | [virtual] |
Sets the number of times the audio sample is to be repeated during the PlayL() operation.
A period of silence can follow each playing of the audio sample. The audio sample can be repeated indefinitely or until stopped.
5.0
TInt aRepeatNumberOfTimes | The number of times the audio sample, together with the trailing silence, is to be repeated. If this is set to KMdaRepeatForever, then the audio sample, together with the trailing silence, is repeated indefinitely. If this is set to zero, then the audio sample is not repeated. |
const TTimeIntervalMicroSeconds & aTrailingSilence | The length of the trailing silence in microseconds. |
IMPORT_C TInt | SetThreadPriority | ( | const TThreadPriority & | aThreadPriority | ) | const |
const TThreadPriority & aThreadPriority |
TState | State | ( | ) | [virtual] |
Returns the current state of the audio sample data.
The state of the audio sample data.
5.0
void | Stop | ( | ) | [virtual] |
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.
5.0