summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/jni/android_media_AudioRecord.cpp5
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;
}
// ----------------------------------------------------------------------------