multimediacommsengine/mmceshared/src/mcecomamrwbcodec.cpp
changeset 27 5be06b45e413
parent 23 a297cbce4e85
child 49 64c62431ac08
equal deleted inserted replaced
23:a297cbce4e85 27:5be06b45e413
   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 	                
       
   319 	*/
       
   320 //	User::LeaveIfError( notValid ? KErrNotSupported : KErrNone );
   318 	if ( aMccCodec.CodecMode() != (TCodecMode)iCodecMode )
   321 	if ( aMccCodec.CodecMode() != (TCodecMode)iCodecMode )
   319 		{
   322 		{
   320 		// codec-mode was different, fail.
   323 		// codec-mode was different, fail.
   321 		User::Leave(KErrNotSupported);
   324 		User::Leave(KErrNotSupported);
   322 		}
   325 		}