# FlacConstants

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/extractor/flac/FlacConstants "View this page in Java")

<br />

```
@UnstableApi
class FlacConstants
```

<br />

*** ** * ** ***

Defines constants used by the FLAC extractor.

## Summary

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

## Constants

### MAX_FRAME_HEADER_SIZE

```
const val MAX_FRAME_HEADER_SIZE = 16: Int
```

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

```
const val METADATA_BLOCK_HEADER_SIZE = 4: Int
```

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

### METADATA_TYPE_PICTURE

```
const val METADATA_TYPE_PICTURE = 6: Int
```

Picture metadata block type.  

### METADATA_TYPE_SEEK_TABLE

```
const val METADATA_TYPE_SEEK_TABLE = 3: Int
```

Seek table metadata block type.  

### METADATA_TYPE_STREAM_INFO

```
const val METADATA_TYPE_STREAM_INFO = 0: Int
```

Stream info metadata block type.  

### METADATA_TYPE_VORBIS_COMMENT

```
const val METADATA_TYPE_VORBIS_COMMENT = 4: Int
```

Vorbis comment metadata block type.  

### MIN_FRAME_HEADER_SIZE

```
const val MIN_FRAME_HEADER_SIZE = 6: Int
```

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

```
const val STREAM_INFO_BLOCK_SIZE = 38: Int
```

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

### STREAM_MARKER_SIZE

```
const val STREAM_MARKER_SIZE = 4: Int
```

Size of the FLAC stream marker in bytes.