multimediacommsengine/mmceshared/src/mcecomamrwbcodec.cpp
branchGCC_SURGE
changeset 36 e07c9cb4153d
parent 34 fc48eff9c76c
child 49 64c62431ac08
equal deleted inserted replaced
29:11893e44ad1b 36:e07c9cb4153d
   304     {
   304     {
   305     //if answerer mcc codec represents the received offer and codec the answer
   305     //if answerer mcc codec represents the received offer and codec the answer
   306     //if offerer codec represents the sent offer and mcc codec the answer
   306     //if offerer codec represents the sent offer and mcc codec the answer
   307     
   307     
   308     // Bitrates field contains also additional information, mask it away
   308     // Bitrates field contains also additional information, mask it away
       
   309 	/*
   309     TUint mccBitrates = ( aMccCodec.AllowedBitrates() & KMceAllowedAmrWbBitrateAll );
   310     TUint mccBitrates = ( aMccCodec.AllowedBitrates() & KMceAllowedAmrWbBitrateAll );
   310     TUint mceBitrates = ( iAllowedBitrates & KMceAllowedAmrWbBitrateAll );
   311     TUint mceBitrates = ( iAllowedBitrates & KMceAllowedAmrWbBitrateAll );
   311     
   312     
   312     TBool notValid = aRole == EMceRoleAnswerer ?
   313     TBool notValid = aRole == EMceRoleAnswerer ?
   313                   ( mceBitrates && mccBitrates == 0 ||
   314                   ( mceBitrates && mccBitrates == 0 ||
   314 	                mceBitrates > mccBitrates ) :
   315 	                mceBitrates > mccBitrates ) :
   315                   ( mceBitrates && mccBitrates == 0 ||
   316                   ( mceBitrates && mccBitrates == 0 ||
   316 	                mceBitrates < mccBitrates );
   317 	                mceBitrates < mccBitrates );
   317 	
   318 	                
   318 	User::LeaveIfError( notValid ? KErrNotSupported : KErrNone );
   319 	*/
       
   320 //	User::LeaveIfError( notValid ? KErrNotSupported : KErrNone );
   319 	if ( aMccCodec.CodecMode() != (TCodecMode)iCodecMode )
   321 	if ( aMccCodec.CodecMode() != (TCodecMode)iCodecMode )
   320 		{
   322 		{
   321 		// codec-mode was different, fail.
   323 		// codec-mode was different, fail.
   322 		User::Leave(KErrNotSupported);
   324 		User::Leave(KErrNotSupported);
   323 		}
   325 		}