# FlacConstants

Artifact: [androidx.media3:media3-extractor](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/extractor/flac/FlacConstants.java+class:androidx.media3.extractor.flac.FlacConstants)

*** ** * ** ***


```
@UnstableApi
public final class FlacConstants
```

<br />

*** ** * ** ***

Defines constants used by the FLAC extractor.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/flac/FlacConstants#MAX_FRAME_HEADER_SIZE() = 16` Maximum size of a FLAC frame header in bytes. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/flac/FlacConstants#METADATA_BLOCK_HEADER_SIZE() = 4` Size of the header of a FLAC metadata block in bytes. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/flac/FlacConstants#METADATA_TYPE_PICTURE() = 6` Picture metadata block type. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/flac/FlacConstants#METADATA_TYPE_SEEK_TABLE() = 3` Seek table metadata block type. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/flac/FlacConstants#METADATA_TYPE_STREAM_INFO() = 0` Stream info metadata block type. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/flac/FlacConstants#METADATA_TYPE_VORBIS_COMMENT() = 4` Vorbis comment metadata block type. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/flac/FlacConstants#MIN_FRAME_HEADER_SIZE() = 6` Minimum size of a FLAC frame header in bytes. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/flac/FlacConstants#STREAM_INFO_BLOCK_SIZE() = 38` Size of the FLAC stream info block (header included) in bytes. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/flac/FlacConstants#STREAM_MARKER_SIZE() = 4` Size of the FLAC stream marker in bytes. |

## Constants

### MAX_FRAME_HEADER_SIZE

```
public static final int MAX_FRAME_HEADER_SIZE = 16
```

Maximum size of a FLAC frame header in bytes.

This is a header with:

1. The standard mandatory first 4 bytes
2. A 7 byte coded number
3. A 2 byte uncommon block size
4. A 2 byte uncommon sample rate
5. A CRC-8 byte

### METADATA_BLOCK_HEADER_SIZE

```
public static final int METADATA_BLOCK_HEADER_SIZE = 4
```

Size of the header of a FLAC metadata block in bytes.

### METADATA_TYPE_PICTURE

```
public static final int METADATA_TYPE_PICTURE = 6
```

Picture metadata block type.

### METADATA_TYPE_SEEK_TABLE

```
public static final int METADATA_TYPE_SEEK_TABLE = 3
```

Seek table metadata block type.

### METADATA_TYPE_STREAM_INFO

```
public static final int METADATA_TYPE_STREAM_INFO = 0
```

Stream info metadata block type.

### METADATA_TYPE_VORBIS_COMMENT

```
public static final int METADATA_TYPE_VORBIS_COMMENT = 4
```

Vorbis comment metadata block type.

### MIN_FRAME_HEADER_SIZE

```
public static final int MIN_FRAME_HEADER_SIZE = 6
```

Minimum size of a FLAC frame header in bytes.

This is a header with:

1. The standard mandatory first 4 bytes
2. A single byte coded number
3. No uncommon block size or uncommon sample rate
4. A CRC-8 byte

### STREAM_INFO_BLOCK_SIZE

```
public static final int STREAM_INFO_BLOCK_SIZE = 38
```

Size of the FLAC stream info block (header included) in bytes.

### STREAM_MARKER_SIZE

```
public static final int STREAM_MARKER_SIZE = 4
```

Size of the FLAC stream marker in bytes.