Archived:AMR cannot be recorded to a descriptor on Nokia 7610 and Nokia 6260 devices (Known Issue)
hamishwillee
(Talk | contribs) |
hamishwillee
(Talk | contribs) m (moved AMR cannot be recorded to a descriptor on Nokia 7610 and Nokia 6260 devices (Known Issue) to Archived:AMR cannot be recorded to a descriptor on Nokia 7610 and Nokia 6260 devices (Known Issue)) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Archived|timestamp=20120408141757|user=[[User:Lpvalente|Lpvalente]]}} | ||
| + | [[Category:Known Issue]][[Category:Symbian C++]][[Category:S60 2nd Edition FP1]] | ||
| + | |||
| + | |||
{{ArticleMetaData <!-- v1.2 --> | {{ArticleMetaData <!-- v1.2 --> | ||
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) --> | |sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) --> | ||
| Line 26: | Line 30: | ||
==Overview== | ==Overview== | ||
| − | AMR-encoded audio cannot be recorded to a descriptor on S60 2nd Edition, Feature Pack 1 devices (such as Nokia 7610 and Nokia 6260) using the CMdaAudioRecorderUtility::OpenDesL() method. | + | {{Abstract|AMR-encoded audio cannot be recorded to a descriptor on S60 2nd Edition, Feature Pack 1 devices (such as Nokia 7610 and Nokia 6260) using the CMdaAudioRecorderUtility::OpenDesL() method.}} |
==Symptoms== | ==Symptoms== | ||
| Line 35: | Line 39: | ||
==How to reproduce== | ==How to reproduce== | ||
| − | < | + | <code cpp> |
| + | |||
| + | // call this method | ||
| + | CMdaAudioRecorderUtility::OpenDesL(TDesC8& aDescriptor, | ||
| + | TUid aControllerUid, | ||
| + | TUid aPlaybackControllerUid=KNullUid, | ||
| + | TUid aFormatUid=KNullUid, | ||
| + | TFourCC aCodec=NULL); | ||
| + | |||
| + | // with the following parameters: | ||
| + | aControllerUid = { 0x101FAF7D } // Nokia Advanced Audio //Controller UID | ||
| + | aFormatUid = { 0x101FAF7E } // AMR-NB Write Format UID | ||
| + | aCodec = { 0x524D4120 } // AMR-NB codec FourCC code | ||
| + | |||
| + | </code> | ||
==Solution== | ==Solution== | ||
Record the AMR to a file using CMdaAudioRecorderUtility::OpenFileL(const TDesC& aFileName). | Record the AMR to a file using CMdaAudioRecorderUtility::OpenFileL(const TDesC& aFileName). | ||
| − | |||
| − | |||
Latest revision as of 09:16, 15 June 2012
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
The article is believed to be still valid for the original topic scope.
The article is believed to be still valid for the original topic scope.
Article Metadata
Tested with
Devices(s): Nokia 7610, software version 4.0420.1 and Nokia 6260, software version 2.0426.0
Compatibility
Platform(s): S60 2nd Edition, FP1
Article
Created: User:Technical writer 1
(07 Dec 2004)
Last edited: hamishwillee
(15 Jun 2012)
Contents |
Overview
AMR-encoded audio cannot be recorded to a descriptor on S60 2nd Edition, Feature Pack 1 devices (such as Nokia 7610 and Nokia 6260) using the CMdaAudioRecorderUtility::OpenDesL() method.
Symptoms
The AMR does not get recorded at all and the KErrNotSupported (-5) error is returned.
Description
The required AMR Write Plugin UID (0x101FAF7E) for the method clashes with the Advanced Audio Controller UID. Currently the only way to record an AMR is to do it with the CmdAudioRecorderUtility::OpenFileL() method. AMR audio can only be recorded to a file on these devices.
How to reproduce
// call this method
CMdaAudioRecorderUtility::OpenDesL(TDesC8& aDescriptor,
TUid aControllerUid,
TUid aPlaybackControllerUid=KNullUid,
TUid aFormatUid=KNullUid,
TFourCC aCodec=NULL);
// with the following parameters:
aControllerUid = { 0x101FAF7D } // Nokia Advanced Audio //Controller UID
aFormatUid = { 0x101FAF7E } // AMR-NB Write Format UID
aCodec = { 0x524D4120 } // AMR-NB codec FourCC code
Solution
Record the AMR to a file using CMdaAudioRecorderUtility::OpenFileL(const TDesC& aFileName).

