Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove AudioRecord record_flags

Change-Id: I69d781eca9fdf174dc5d8db0bebc35da2bdbae5e
  • Loading branch information...
commit 87937d3eed4c1d2eba95bf3a0071a8e9d88f7b98 1 parent 97a59d8
Glenn Kasten authored
3  audio/AudioIn/UNIX/src/audioinwrapper.cpp
@@ -100,8 +100,7 @@ int AudioOpen(void)
100 100 sampleRate,
101 101 AUDIO_FORMAT_PCM_16_BIT,
102 102 (numChannels > 1) ? AUDIO_CHANNEL_IN_STEREO : AUDIO_CHANNEL_IN_MONO,
103   - 8*1024,
104   - (android::AudioRecord::record_flags) 0);
  103 + 8*1024);
105 104
106 105 if (!record) return -1;
107 106
2  srec_jni/android_speech_srec_MicrophoneInputStream.cpp
@@ -59,7 +59,7 @@ static JNIEXPORT jint JNICALL Java_android_speech_srec_Recognizer_AudioRecordNew
59 59 android::AudioRecord* ar = new android::AudioRecord(
60 60 AUDIO_SOURCE_VOICE_RECOGNITION, sampleRate,
61 61 AUDIO_FORMAT_PCM_16_BIT, AUDIO_CHANNEL_IN_MONO,
62   - fifoFrames, (android::AudioRecord::record_flags) 0);
  62 + fifoFrames);
63 63 if (ar == NULL) {
64 64 ALOGE("Error creating AudioRecord");
65 65 }

0 comments on commit 87937d3

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