 -        WEBRTC_TRACE(kTraceInfo, kTraceAudioDevice, _id,
 -                     "Could not set preferred sample rate (result=%d)", result);
 -    }
--
++//    result = AudioSessionSetProperty(
++//                         kAudioSessionProperty_PreferredHardwareSampleRate,
++//                         sizeof(sampleRate), &sampleRate);
++//    if (0 != result) {
++//        WEBRTC_TRACE(kTraceInfo, kTraceAudioDevice, _id,
++//                     "Could not set preferred sample rate (result=%d)", result);
++//    }
+ 
 -    uint32_t voiceChat = kAudioSessionMode_VoiceChat;
 -    AudioSessionSetProperty(kAudioSessionProperty_Mode,
 -                            sizeof(voiceChat), &voiceChat);

     //////////////////////
     // Setup Voice Processing Audio Unit
 
@@ -1438,6 +1452,8 @@
                  "  Current HW sample rate is %f, ADB sample rate is %d",
              hardwareSampleRate, _adbSampFreq);
 

 
     // Create Voice Processing Audio Unit
     AudioComponentDescription desc;
@@ -1221,18 +1249,14 @@
 
     // Set preferred hardware sample rate to 16 kHz
     Float64 sampleRate(16000.0);
-    result = AudioSessionSetProperty(
-                         kAudioSessionProperty_PreferredHardwareSampleRate,
-                         sizeof(sampleRate), &sampleRate);
