• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Revision8850557b90e93415ad73658cbc8f2e517ac8f28e (tree)
Time2011-08-11 12:47:40
AuthorWallace Wang <Wallace1.Wang@gmai...>
CommiterChih-Wei Huang

Log Message

make audio recorder ok

Change Summary

Incremental Difference

--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -103,6 +103,7 @@ public:
103103 // Channel mask definitions must be kept in sync with JAVA values in /media/java/android/media/AudioFormat.java
104104 enum audio_channels {
105105 // output channels
106+ CHANNEL_OUT_DEFAULT = 0x1,
106107 CHANNEL_OUT_FRONT_LEFT = 0x4,
107108 CHANNEL_OUT_FRONT_RIGHT = 0x8,
108109 CHANNEL_OUT_FRONT_CENTER = 0x10,
@@ -123,11 +124,12 @@ public:
123124 CHANNEL_OUT_7POINT1 = (CHANNEL_OUT_FRONT_LEFT | CHANNEL_OUT_FRONT_RIGHT |
124125 CHANNEL_OUT_FRONT_CENTER | CHANNEL_OUT_LOW_FREQUENCY | CHANNEL_OUT_BACK_LEFT | CHANNEL_OUT_BACK_RIGHT |
125126 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 |
127128 CHANNEL_OUT_FRONT_CENTER | CHANNEL_OUT_LOW_FREQUENCY | CHANNEL_OUT_BACK_LEFT | CHANNEL_OUT_BACK_RIGHT |
128129 CHANNEL_OUT_FRONT_LEFT_OF_CENTER | CHANNEL_OUT_FRONT_RIGHT_OF_CENTER | CHANNEL_OUT_BACK_CENTER),
129130
130131 // input channels
132+ CHANNEL_IN_DEFAULT = 0x1,
131133 CHANNEL_IN_LEFT = 0x4,
132134 CHANNEL_IN_RIGHT = 0x8,
133135 CHANNEL_IN_FRONT = 0x10,
@@ -144,7 +146,7 @@ public:
144146 CHANNEL_IN_VOICE_DNLINK = 0x8000,
145147 CHANNEL_IN_MONO = CHANNEL_IN_FRONT,
146148 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|
148150 CHANNEL_IN_LEFT_PROCESSED | CHANNEL_IN_RIGHT_PROCESSED | CHANNEL_IN_FRONT_PROCESSED | CHANNEL_IN_BACK_PROCESSED|
149151 CHANNEL_IN_PRESSURE | CHANNEL_IN_X_AXIS | CHANNEL_IN_Y_AXIS | CHANNEL_IN_Z_AXIS |
150152 CHANNEL_IN_VOICE_UPLINK | CHANNEL_IN_VOICE_DNLINK)