# Ac3Util.SyncFrameInfo

# Ac3Util.SyncFrameInfo

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/Ac3Util.java+class:androidx.media3.extractor.Ac3Util.SyncFrameInfo)

*** ** * ** ***

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

<br />

```
class Ac3Util.SyncFrameInfo
```

<br />

*** ** * ** ***

Holds sample format information as presented by a syncframe header.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                      ### Nested types                                                                                                                                                                                                                                                                                                                                                                                                       |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `@`[Documented](https://developer.android.com/reference/java/lang/annotation/Documented.html) `@`[Retention](https://developer.android.com/reference/java/lang/annotation/Retention.html)`(value = `[RetentionPolicy.SOURCE](https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE)`)` `@`[Target](https://developer.android.com/reference/java/lang/annotation/Target.html)`(value = `[ElementType.TYPE_USE](https://developer.android.com/reference/java/lang/annotation/ElementType.html#TYPE_USE)`)` `@`[IntDef](https://developer.android.com/reference/kotlin/androidx/annotation/IntDef)`(value = )` `annotation `[Ac3Util.SyncFrameInfo.StreamType](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo.StreamType) AC3 stream types. |

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [STREAM_TYPE_TYPE0](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_TYPE0())` = 0` Type 0 AC3 stream type.             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [STREAM_TYPE_TYPE1](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_TYPE1())` = 1` Type 1 AC3 stream type.             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [STREAM_TYPE_TYPE2](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_TYPE2())` = 2` Type 2 AC3 stream type.             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [STREAM_TYPE_UNDEFINED](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_UNDEFINED())` = -1` Undefined AC3 stream type. |

|                                ### Public properties                                 |
|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [bitrate](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#bitrate()) The bitrate of audio samples.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [channelCount](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#channelCount()) The number of audio channels                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [frameSize](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#frameSize()) The size of the frame.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | [mimeType](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#mimeType()) The sample MIME type of the bitstream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [sampleCount](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#sampleCount()) Number of audio samples in the frame.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [sampleRate](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#sampleRate()) The audio sampling rate in Hz.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | `@`[Ac3Util.SyncFrameInfo.StreamType](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo.StreamType) [streamType](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#streamType()) The type of the stream if[mimeType](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#mimeType())is[AUDIO_E_AC3](https://developer.android.com/reference/kotlin/androidx/media3/common/MimeTypes#AUDIO_E_AC3()), or[STREAM_TYPE_UNDEFINED](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_UNDEFINED())otherwise. |

## Constants

### STREAM_TYPE_TYPE0

```
const val STREAM_TYPE_TYPE0 = 0: Int
```

Type 0 AC3 stream type.  

### STREAM_TYPE_TYPE1

```
const val STREAM_TYPE_TYPE1 = 1: Int
```

Type 1 AC3 stream type.  

### STREAM_TYPE_TYPE2

```
const val STREAM_TYPE_TYPE2 = 2: Int
```

Type 2 AC3 stream type.  

### STREAM_TYPE_UNDEFINED

```
const val STREAM_TYPE_UNDEFINED = -1: Int
```

Undefined AC3 stream type.  

## Public properties

### bitrate

```
val bitrate: Int
```

The bitrate of audio samples.  

### channelCount

```
val channelCount: Int
```

The number of audio channels  

### frameSize

```
val frameSize: Int
```

The size of the frame.  

### mimeType

```
val mimeType: String?
```

The sample MIME type of the bitstream. One of[AUDIO_AC3](https://developer.android.com/reference/kotlin/androidx/media3/common/MimeTypes#AUDIO_AC3())and[AUDIO_E_AC3](https://developer.android.com/reference/kotlin/androidx/media3/common/MimeTypes#AUDIO_E_AC3()).  

### sampleCount

```
val sampleCount: Int
```

Number of audio samples in the frame.  

### sampleRate

```
val sampleRate: Int
```

The audio sampling rate in Hz.  

### streamType

```
@Ac3Util.SyncFrameInfo.StreamType
val streamType: Int
```

The type of the stream if[mimeType](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#mimeType())is[AUDIO_E_AC3](https://developer.android.com/reference/kotlin/androidx/media3/common/MimeTypes#AUDIO_E_AC3()), or[STREAM_TYPE_UNDEFINED](https://developer.android.com/reference/kotlin/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_UNDEFINED())otherwise.