Remove AudioRecord record_flags
Change-Id: I69d781eca9fdf174dc5d8db0bebc35da2bdbae5e
diff --git a/audio/AudioIn/UNIX/src/audioinwrapper.cpp b/audio/AudioIn/UNIX/src/audioinwrapper.cpp
index 2fe6206..a30c017 100644
--- a/audio/AudioIn/UNIX/src/audioinwrapper.cpp
+++ b/audio/AudioIn/UNIX/src/audioinwrapper.cpp
@@ -100,8 +100,7 @@
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;
diff --git a/srec_jni/android_speech_srec_MicrophoneInputStream.cpp b/srec_jni/android_speech_srec_MicrophoneInputStream.cpp
index e936300..7cb56bb 100644
--- a/srec_jni/android_speech_srec_MicrophoneInputStream.cpp
+++ b/srec_jni/android_speech_srec_MicrophoneInputStream.cpp
@@ -59,7 +59,7 @@
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");
}