summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2009-11-03 19:43:21 -0800
committerJean-Michel Trivi <jmtrivi@google.com>2009-11-03 19:43:21 -0800
commit6869df3a5db0ca0037394f0fd14aecc1d80b5b42 (patch)
tree1d2c10ca2bd9fb71002375c8f9f3d61a9dfa2506 /media
parentb96a9d9296925fef6a1c0e5ad4d847d96bf9acb5 (diff)
downloadframeworks_base-6869df3a5db0ca0037394f0fd14aecc1d80b5b42.zip
frameworks_base-6869df3a5db0ca0037394f0fd14aecc1d80b5b42.tar.gz
frameworks_base-6869df3a5db0ca0037394f0fd14aecc1d80b5b42.tar.bz2
Add new audio sources to support the A1026 recording configurations.
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/MediaRecorder.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/media/java/android/media/MediaRecorder.java b/media/java/android/media/MediaRecorder.java
index 9bb00c6..0b42cf6 100644
--- a/media/java/android/media/MediaRecorder.java
+++ b/media/java/android/media/MediaRecorder.java
@@ -135,6 +135,12 @@ public class MediaRecorder
/** Voice call uplink + downlink audio source */
public static final int VOICE_CALL = 4;
+
+ /** @hide Microphone audio source with same orientation as camera */
+ public static final int CAMCORDER = 5;
+
+ /** @hide Microphone audio source tuned for voice recognition */
+ public static final int VOICE_RECOGNITION = 6;
}
/**
@@ -274,7 +280,7 @@ public class MediaRecorder
* Gets the maximum value for audio sources.
* @see android.media.MediaRecorder.AudioSource
*/
- public static final int getAudioSourceMax() { return AudioSource.VOICE_CALL; }
+ public static final int getAudioSourceMax() { return AudioSource.VOICE_RECOGNITION; }
/**
* Sets the video source to be used for recording. If this method is not