CMdaAudioConvertUtility::OpenL fails with KerrNotSupported
Article Metadata
Compatibility
S60 2nd Edition
Article
Overview
CMdaAudioConvertUtility::OpenL fails with KerrNotSupported
Description
When trying to open the media server audio converter utility, I always get the KErrNotSupported error regardless of the combination of source/destination formats and codecs I use. What causes this?
Solution
There is an error in the SDK documentation for one of the CMdaAudioConvertUtility::OpenL function overloads.
The parameter descriptions for the function taking 8 parameters should be as follows:
void OpenL(TMdaClipLocation* aPriLocation,
TMdaClipLocation* aSecLocation,
TMdaClipFormat* aPriFormat,
TMdaClipFormat* aSecFormat,
TMdaPackage* aPriArg1 = NULL,
TMdaPackage* aPriArg2 = NULL,
TMdaPackage* aSecArg1 = NULL,
TMdaPackage* aSecArg2 = NULL) = 0;
TMdaClipLocation* aPriLocation The source location for audio data. This is usually a file (TMdaFileClipLocation) or a descriptor (TMdaDesClipLocation).
TMdaClipLocation* aLocation The target location for audio data. This is usually a file (TMdaFileClipLocation) or a descriptor (TMdaDesClipLocation).
TMdaClipFormat* aPriFormat The audio format of the source audio object.
TMdaClipFormat* aSecFormat The audio format of the target audio object.
TMdaPackage* aPriArg1 The codec used by the source audio object.
TMdaPackage* aPriArg2 The audio settings of the source audio object.
TMdaPackage* aSecArg1 The codec to be used for the target audio object.
TMdaPackage* aSecArg2 The audio settings for the target audio object.


(no comments yet)