Skip to content
Browse files

Remove AudioRecord record_flags

Change-Id: I69d781eca9fdf174dc5d8db0bebc35da2bdbae5e
  • Loading branch information...
1 parent 97a59d8 commit 87937d3eed4c1d2eba95bf3a0071a8e9d88f7b98 Glenn Kasten committed Mar 26, 2012
View
3 audio/AudioIn/UNIX/src/audioinwrapper.cpp
@@ -100,8 +100,7 @@ int AudioOpen(void)
sampleRate,
AUDIO_FORMAT_PCM_16_BIT,
(numChannels > 1) ? AUDIO_CHANNEL_IN_STEREO : AUDIO_CHANNEL_IN_MONO,
- 8*1024,
- (android::AudioRecord::record_flags) 0);
+ 8*1024);
if (!record) return -1;
View
2 srec_jni/android_speech_srec_MicrophoneInputStream.cpp
@@ -59,7 +59,7 @@ static JNIEXPORT jint JNICALL Java_android_speech_srec_Recognizer_AudioRecordNew
android::AudioRecord* ar = new android::AudioRecord(
AUDIO_SOURCE_VOICE_RECOGNITION, sampleRate,
AUDIO_FORMAT_PCM_16_BIT, AUDIO_CHANNEL_IN_MONO,
- fifoFrames, (android::AudioRecord::record_flags) 0);
+ fifoFrames);
if (ar == NULL) {
ALOGE("Error creating AudioRecord");
}

0 comments on commit 87937d3

Please sign in to comment.
Something went wrong with that request. Please try again.