×
Namespaces

Variants
Actions

Archived:Using AMR NB codec with VoIP Audio Service API on Nokia E72 requires additional configuration (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: 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}}.

Article Metadata
Tested with
Devices(s): Nokia E72
Compatibility
Platform(s): S60 3rd Edition, FP2
S60 3rd Edition FP2
Article
Keywords: EAMR_NB
Created: User:Kbwiki (28 Dec 2009)
Last edited: hamishwillee (21 Jun 2012)

Note.pngNote: The VoIP Audio Service API is not part of the public SDK. It can be found in the SDK API Plug-in.


Description

Playback using the VoIP Audio Service API (VAS) fails on the Nokia E72 if the VAS downlink stream is configured to use the AMR-NB codec and the frame mode is not set.

How to reproduce

This issue can be easily reproduced with the VoIPTest example application included in the API package.

Change the uplink and downlink format to AMR-NB (EAMR_NB) for the one touch loopback feature:


  void CVoIPTestEngine::OneTouchLoopback()
{
iOneTouchLoopback = ETrue;
SetDownlinkFormat(EAMR_NB);
SetUplinkFormat(EAMR_NB);
}

When running the example on the Nokia E72, playback fails (no output from the loudspeaker) after One touch loopback is selected from the menu.

Solution

After initialising the VAS downlink with the AMR-NB codec is complete, frame mode (CVoIPFormatIntfc::SetFrameMode(TBool aFrameMode)) must be set to true for the downlink codec, before starting the downlink stream.

In the VoIPTest example, this can be easily tested by modifying the CVoIPTestEngine::Event() function as follows:


void CVoIPTestEngine::Event(const CVoIPAudioDownlinkStream& /*aSrc*/, TInt aEventType, TInt aError)
{
switch (aEventType)
{
case MVoIPDownlinkObserver::KOpenComplete:
{
...
 
if (iOneTouchLoopback)
{
<b>ToggleFrameMode(); // Set frame mode ON</b>
StartDownlink();
}
break;
}
...
}
This page was last modified on 21 June 2012, at 06:15.
43 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×