diff options
author | Paul McLean <pmclean@google.com> | 2015-04-24 14:01:29 -0600 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-04-28 17:16:18 +0000 |
commit | 6bd27e1a0c030e0c47d21dd4c99c3133c85685a9 (patch) | |
tree | 2f84322c194ae8ced68be82bc55bf577ea519c01 /core/jni | |
parent | 2301174eb3598a3290b5c56aae36b19b2c6743ac (diff) | |
download | frameworks_base-6bd27e1a0c030e0c47d21dd4c99c3133c85685a9.zip frameworks_base-6bd27e1a0c030e0c47d21dd4c99c3133c85685a9.tar.gz frameworks_base-6bd27e1a0c030e0c47d21dd4c99c3133c85685a9.tar.bz2 |
AudioRecord device select continued
Change-Id: I3b6ace370b878351d98dbdcba2db718b30de2f27
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android_media_AudioRecord.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/jni/android_media_AudioRecord.cpp b/core/jni/android_media_AudioRecord.cpp index d86f71a..c384ef9 100644 --- a/core/jni/android_media_AudioRecord.cpp +++ b/core/jni/android_media_AudioRecord.cpp @@ -587,9 +587,8 @@ static jint android_media_AudioRecord_get_min_buff_size(JNIEnv *env, jobject th static jboolean android_media_AudioRecord_setInputDevice( JNIEnv *env, jobject thiz, jint device_id) { -// sp<AudioRecord> lpRecorder = getAudioRecord(env, thiz); -// return lpRecorder->setInputDevice(device_id) == NO_ERROR; - return false; + sp<AudioRecord> lpRecorder = getAudioRecord(env, thiz); + return lpRecorder->setInputDevice(device_id) == NO_ERROR; } // ---------------------------------------------------------------------------- |