frameworks/base
Revision | 8850557b90e93415ad73658cbc8f2e517ac8f28e (tree) |
---|---|
Time | 2011-08-11 12:47:40 |
Author | Wallace Wang <Wallace1.Wang@gmai...> |
Commiter | Chih-Wei Huang |
make audio recorder ok
@@ -103,6 +103,7 @@ public: | ||
103 | 103 | // Channel mask definitions must be kept in sync with JAVA values in /media/java/android/media/AudioFormat.java |
104 | 104 | enum audio_channels { |
105 | 105 | // output channels |
106 | + CHANNEL_OUT_DEFAULT = 0x1, | |
106 | 107 | CHANNEL_OUT_FRONT_LEFT = 0x4, |
107 | 108 | CHANNEL_OUT_FRONT_RIGHT = 0x8, |
108 | 109 | CHANNEL_OUT_FRONT_CENTER = 0x10, |
@@ -123,11 +124,12 @@ public: | ||
123 | 124 | CHANNEL_OUT_7POINT1 = (CHANNEL_OUT_FRONT_LEFT | CHANNEL_OUT_FRONT_RIGHT | |
124 | 125 | CHANNEL_OUT_FRONT_CENTER | CHANNEL_OUT_LOW_FREQUENCY | CHANNEL_OUT_BACK_LEFT | CHANNEL_OUT_BACK_RIGHT | |
125 | 126 | CHANNEL_OUT_FRONT_LEFT_OF_CENTER | CHANNEL_OUT_FRONT_RIGHT_OF_CENTER), |
126 | - CHANNEL_OUT_ALL = (CHANNEL_OUT_FRONT_LEFT | CHANNEL_OUT_FRONT_RIGHT | | |
127 | + CHANNEL_OUT_ALL = (CHANNEL_OUT_DEFAULT | CHANNEL_OUT_FRONT_LEFT | CHANNEL_OUT_FRONT_RIGHT | | |
127 | 128 | CHANNEL_OUT_FRONT_CENTER | CHANNEL_OUT_LOW_FREQUENCY | CHANNEL_OUT_BACK_LEFT | CHANNEL_OUT_BACK_RIGHT | |
128 | 129 | CHANNEL_OUT_FRONT_LEFT_OF_CENTER | CHANNEL_OUT_FRONT_RIGHT_OF_CENTER | CHANNEL_OUT_BACK_CENTER), |
129 | 130 | |
130 | 131 | // input channels |
132 | + CHANNEL_IN_DEFAULT = 0x1, | |
131 | 133 | CHANNEL_IN_LEFT = 0x4, |
132 | 134 | CHANNEL_IN_RIGHT = 0x8, |
133 | 135 | CHANNEL_IN_FRONT = 0x10, |
@@ -144,7 +146,7 @@ public: | ||
144 | 146 | CHANNEL_IN_VOICE_DNLINK = 0x8000, |
145 | 147 | CHANNEL_IN_MONO = CHANNEL_IN_FRONT, |
146 | 148 | CHANNEL_IN_STEREO = (CHANNEL_IN_LEFT | CHANNEL_IN_RIGHT), |
147 | - CHANNEL_IN_ALL = (CHANNEL_IN_LEFT | CHANNEL_IN_RIGHT | CHANNEL_IN_FRONT | CHANNEL_IN_BACK| | |
149 | + CHANNEL_IN_ALL = (CHANNEL_IN_DEFAULT | CHANNEL_IN_LEFT | CHANNEL_IN_RIGHT | CHANNEL_IN_FRONT | CHANNEL_IN_BACK| | |
148 | 150 | CHANNEL_IN_LEFT_PROCESSED | CHANNEL_IN_RIGHT_PROCESSED | CHANNEL_IN_FRONT_PROCESSED | CHANNEL_IN_BACK_PROCESSED| |
149 | 151 | CHANNEL_IN_PRESSURE | CHANNEL_IN_X_AXIS | CHANNEL_IN_Y_AXIS | CHANNEL_IN_Z_AXIS | |
150 | 152 | CHANNEL_IN_VOICE_UPLINK | CHANNEL_IN_VOICE_DNLINK) |