Skip to content

Commit d609ca7

Browse files
author
James Dong
committed
Expose AMRNB/WB and AAC encoder and related file output formats - do not merge
bug - 3305667 Change-Id: I8f137af7f87cb010f75cae1777b9ec6b6af8214f
1 parent 3ce8648 commit d609ca7

File tree

2 files changed

+51
-6
lines changed

2 files changed

+51
-6
lines changed

api/current.xml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87206,6 +87206,17 @@
8720687206
deprecated="not deprecated"
8720787207
visibility="public"
8720887208
>
87209+
<field name="AAC"
87210+
type="int"
87211+
transient="false"
87212+
volatile="false"
87213+
value="3"
87214+
static="true"
87215+
final="true"
87216+
deprecated="not deprecated"
87217+
visibility="public"
87218+
>
87219+
</field>
8720987220
<field name="AMR_NB"
8721087221
type="int"
8721187222
transient="false"
@@ -87217,6 +87228,17 @@
8721787228
visibility="public"
8721887229
>
8721987230
</field>
87231+
<field name="AMR_WB"
87232+
type="int"
87233+
transient="false"
87234+
volatile="false"
87235+
value="2"
87236+
static="true"
87237+
final="true"
87238+
deprecated="not deprecated"
87239+
visibility="public"
87240+
>
87241+
</field>
8722087242
<field name="DEFAULT"
8722187243
type="int"
8722287244
transient="false"
@@ -87373,6 +87395,28 @@
8737387395
deprecated="not deprecated"
8737487396
visibility="public"
8737587397
>
87398+
<field name="AMR_NB"
87399+
type="int"
87400+
transient="false"
87401+
volatile="false"
87402+
value="3"
87403+
static="true"
87404+
final="true"
87405+
deprecated="not deprecated"
87406+
visibility="public"
87407+
>
87408+
</field>
87409+
<field name="AMR_WB"
87410+
type="int"
87411+
transient="false"
87412+
volatile="false"
87413+
value="4"
87414+
static="true"
87415+
final="true"
87416+
deprecated="not deprecated"
87417+
visibility="public"
87418+
>
87419+
</field>
8737687420
<field name="DEFAULT"
8737787421
type="int"
8737887422
transient="false"
@@ -224703,7 +224747,7 @@
224703224747
deprecated="not deprecated"
224704224748
visibility="public"
224705224749
>
224706-
<parameter name="t" type="T">
224750+
<parameter name="arg0" type="T">
224707224751
</parameter>
224708224752
</method>
224709224753
</interface>

media/java/android/media/MediaRecorder.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,12 @@ private OutputFormat() {}
178178

179179
/** The following formats are audio only .aac or .amr formats **/
180180
/** @deprecated Deprecated in favor of AMR_NB */
181-
/** TODO: change link when AMR_NB is exposed. Deprecated in favor of MediaRecorder.OutputFormat.AMR_NB */
181+
/** Deprecated in favor of MediaRecorder.OutputFormat.AMR_NB */
182+
/** AMR NB file format */
182183
public static final int RAW_AMR = 3;
183-
/** @hide AMR NB file format */
184+
/** AMR NB file format */
184185
public static final int AMR_NB = 3;
185-
/** @hide AMR WB file format */
186+
/** AMR WB file format */
186187
public static final int AMR_WB = 4;
187188
/** @hide AAC ADIF file format */
188189
public static final int AAC_ADIF = 5;
@@ -208,9 +209,9 @@ private AudioEncoder() {}
208209
public static final int DEFAULT = 0;
209210
/** AMR (Narrowband) audio codec */
210211
public static final int AMR_NB = 1;
211-
/** @hide AMR (Wideband) audio codec */
212+
/** AMR (Wideband) audio codec */
212213
public static final int AMR_WB = 2;
213-
/** @hide AAC audio codec */
214+
/** AAC audio codec */
214215
public static final int AAC = 3;
215216
/** @hide enhanced AAC audio codec */
216217
public static final int AAC_PLUS = 4;

0 commit comments

Comments
 (0)