Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:39, 18 June 2008.

TSS000260 - Support for full-duplex audio in the S60 platform

From Forum Nokia Wiki


Support for full-duplex audio in the S60 platform
TSS000260
Overview
Starting from S60 2nd Edition, Feature Pack 2, a number of S60 devices are based on hardware that supports full-duplex audio (simultaneous playback and recording).
Reported against
S60 2nd Edition, Feature Pack 2 and onwards
Date identified
June 23, 2005, updated June 18, 2008
Symptoms
-
Detailed description
Full-duplex audio is enabled by initializing two audio streams (one for playback and one for recording) and using custom audio priority and preference values for each stream. These values are different in S60 2nd and 3rd Edition platforms.

Audio APIs that can be used for full-duplex operation:

* Two CMMFDevSound instances
* CMdaAudioOutputStream + CMdaAudioInputStream
* Audio Proxy Server (S60 3rd Ed)
* VoIP Audio Services (S60 3rd Ed, FP1 and FP2)
How to reproduce
Trying to create a second audio stream while another client is already using the audio device will result in the KErrInUse error. Or, if the second client has a higher priority, the first one will be stopped with the KErrDied error value.
Solution
Below are the audio priority (TInt) and preference (TMdaPriorityPreference) values needed for enabling full-duplex audio on S60 3rd Edition and S60 2nd Edition, FP2 or FP3
#ifdef __SERIES60_3X__
 
#define KFullDuplexAudioPrefOutput            0x05220001
#define KFullDuplexAudioPrefInput             0x05210001
 
#else // S60 2nd Edition FP2 + FP3
 
#define KFullDuplexAudioPrefOutput            0x01350001
#define KFullDuplexAudioPrefInput             0x01360001
 
#endif
 
#define KFullDuplexAudioPriority                      99

For more information and example code, see S60 Platform: Full-Duplex Audio Example on Forum Nokia.

 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZaudioQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZTechnicalSolutionQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX