to top
Android APIs
public final class

MediaRecorder.AudioEncoder

extends Object
java.lang.Object
   ↳ android.media.MediaRecorder.AudioEncoder

Class Overview

Defines the audio encoding. These constants are used with setAudioEncoder(int).

Summary

Constants
int AAC AAC Low Complexity (AAC-LC) audio codec
int AAC_ELD Enhanced Low Delay AAC (AAC-ELD) audio codec
int AMR_NB AMR (Narrowband) audio codec
int AMR_WB AMR (Wideband) audio codec
int DEFAULT
int HE_AAC High Efficiency AAC (HE-AAC) audio codec
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int AAC

Since: API Level 10

AAC Low Complexity (AAC-LC) audio codec

Constant Value: 3 (0x00000003)

public static final int AAC_ELD

Since: API Level 16

Enhanced Low Delay AAC (AAC-ELD) audio codec

Constant Value: 5 (0x00000005)

public static final int AMR_NB

Since: API Level 1

AMR (Narrowband) audio codec

Constant Value: 1 (0x00000001)

public static final int AMR_WB

Since: API Level 10

AMR (Wideband) audio codec

Constant Value: 2 (0x00000002)

public static final int DEFAULT

Since: API Level 1

Constant Value: 0 (0x00000000)

public static final int HE_AAC

Since: API Level 16

High Efficiency AAC (HE-AAC) audio codec

Constant Value: 4 (0x00000004)