Use AudioRecord::record_flags consistently
Change-Id: I6466aa80bcffd41c8c874330167b7b5786cef26b
diff --git a/audio/AudioIn/UNIX/src/audioinwrapper.cpp b/audio/AudioIn/UNIX/src/audioinwrapper.cpp
index 9ecf9b2..2fe6206 100644
--- a/audio/AudioIn/UNIX/src/audioinwrapper.cpp
+++ b/audio/AudioIn/UNIX/src/audioinwrapper.cpp
@@ -101,7 +101,7 @@
AUDIO_FORMAT_PCM_16_BIT,
(numChannels > 1) ? AUDIO_CHANNEL_IN_STEREO : AUDIO_CHANNEL_IN_MONO,
8*1024,
- 0);
+ (android::AudioRecord::record_flags) 0);
if (!record) return -1;
diff --git a/srec_jni/android_speech_srec_MicrophoneInputStream.cpp b/srec_jni/android_speech_srec_MicrophoneInputStream.cpp
index 9c164d7..e936300 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, 0);
+ fifoFrames, (android::AudioRecord::record_flags) 0);
if (ar == NULL) {
ALOGE("Error creating AudioRecord");
}