Loading core/jni/android_media_AudioRecord.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -516,7 +516,7 @@ static jint android_media_AudioRecord_get_min_buff_size(JNIEnv *env, jobject th sampleRateInHertz, (audioFormat == javaAudioRecordFields.PCM16 ? AUDIO_FORMAT_PCM_16_BIT : AUDIO_FORMAT_PCM_8_BIT), nbChannels); audio_channel_in_mask_from_count(nbChannels)); if (result == BAD_VALUE) { return 0; Loading voip/jni/rtp/AudioGroup.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -790,7 +790,7 @@ bool AudioGroup::DeviceThread::threadLoop() if (AudioTrack::getMinFrameCount(&output, AUDIO_STREAM_VOICE_CALL, sampleRate) != NO_ERROR || output <= 0 || AudioRecord::getMinFrameCount(&input, sampleRate, AUDIO_FORMAT_PCM_16_BIT, 1) != NO_ERROR || input <= 0) { AUDIO_FORMAT_PCM_16_BIT, AUDIO_CHANNEL_IN_MONO) != NO_ERROR || input <= 0) { ALOGE("cannot compute frame count"); return false; } Loading Loading
core/jni/android_media_AudioRecord.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -516,7 +516,7 @@ static jint android_media_AudioRecord_get_min_buff_size(JNIEnv *env, jobject th sampleRateInHertz, (audioFormat == javaAudioRecordFields.PCM16 ? AUDIO_FORMAT_PCM_16_BIT : AUDIO_FORMAT_PCM_8_BIT), nbChannels); audio_channel_in_mask_from_count(nbChannels)); if (result == BAD_VALUE) { return 0; Loading
voip/jni/rtp/AudioGroup.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -790,7 +790,7 @@ bool AudioGroup::DeviceThread::threadLoop() if (AudioTrack::getMinFrameCount(&output, AUDIO_STREAM_VOICE_CALL, sampleRate) != NO_ERROR || output <= 0 || AudioRecord::getMinFrameCount(&input, sampleRate, AUDIO_FORMAT_PCM_16_BIT, 1) != NO_ERROR || input <= 0) { AUDIO_FORMAT_PCM_16_BIT, AUDIO_CHANNEL_IN_MONO) != NO_ERROR || input <= 0) { ALOGE("cannot compute frame count"); return false; } Loading