How to play audio to ear speaker

Login to reply to this topic.
Wed, 2006-05-03 16:23
Joined: 2003-10-21
Forum posts: 40
Hi,

I'm playing an AMR fie using CMdaAudioPlayerUtility. Everything works fine but I need to play the file to the ear speaker (i.e, not the loud speaker).
I've managed to do it on Nokia 6600 by using SetPriority(80, (TMdaPriorityPreference)EAknAudioPrefVoiceRec).
However, it doesn't work on 6630.
I'm not sure if it's even possible because the built-in voice recorder application can't play file to the ear speaker (called there handset speaker) like in 6600.
My question is if it's possible on 6630 and other devices, and if so, how? Do I need to use other values in the audio prefs?

\thanks
Imzadi

Fri, 2006-05-05 05:58
Joined: 2005-12-16
Forum posts: 25
Re: How to play audio to ear speaker
Hi,

You can use method SetAudioDeviceMode for this purpose.

You can see in SDK that there are following possible value to set
CMdaAudioRecorderUtility::EDefault
CMdaAudioRecorderUtility::ETelephonyOrLocal
CMdaAudioRecorderUtility::ETelephonyMixed
CMdaAudioRecorderUtility::ETelephonyNonMixed
CMdaAudioRecorderUtility::ELocal


So try these thing to solve ur problem & to learn new option as well
Fri, 2006-05-05 12:09
Joined: 2003-10-21
Forum posts: 40
Re: How to play audio to ear speaker
Hi Mavai,

I didn't use this option because the function SetMode is deprecated. You can see the comment in MdaAudioSampleEditor.h file:
Quote
This function is provided for binary compatibility, but does not have any effect from 7.0s.
Did it work for you on earlier OSs?

Imzadi
Thu, 2006-06-22 13:43
Joined: 2005-06-14
Forum posts: 81
Re: How to play audio to ear speaker
Hi Imzadi,

Did you find an answer to your question ? Because I have the same problem. It doesn't work on 6630 and 6680.

Thank you very much.

Bernie
  • Login to reply to this topic.