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

*** ** * ** ***


```
public final class Ac3Util.SyncFrameInfo
```

<br />

*** ** * ** ***

Holds sample format information as presented by a syncframe header.

## Summary

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

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_TYPE0() = 0` Type 0 AC3 stream type. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_TYPE1() = 1` Type 1 AC3 stream type. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_TYPE2() = 2` Type 2 AC3 stream type. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_UNDEFINED() = -1` Undefined AC3 stream type. |

| ### Public fields |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#bitrate()` The bitrate of audio samples. |
| `final int` | `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#channelCount()` The number of audio channels |
| `final int` | `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#frameSize()` The size of the frame. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#mimeType()` The sample MIME type of the bitstream. |
| `final int` | `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#sampleCount()` Number of audio samples in the frame. |
| `final int` | `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#sampleRate()` The audio sampling rate in Hz. |
| `final int` | `@https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo.StreamType https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#streamType()` The type of the stream if `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#mimeType()` is `https://developer.android.com/reference/androidx/media3/common/MimeTypes#AUDIO_E_AC3()`, or `https://developer.android.com/reference/androidx/media3/extractor/Ac3Util.SyncFrameInfo#STREAM_TYPE_UNDEFINED()` otherwise. |

## Constants

### STREAM_TYPE_TYPE0

```
public static final int STREAM_TYPE_TYPE0 = 0
```

Type 0 AC3 stream type.

### STREAM_TYPE_TYPE1

```
public static final int STREAM_TYPE_TYPE1 = 1
```

Type 1 AC3 stream type.

### STREAM_TYPE_TYPE2

```
public static final int STREAM_TYPE_TYPE2 = 2
```

Type 2 AC3 stream type.

### STREAM_TYPE_UNDEFINED

```
public static final int STREAM_TYPE_UNDEFINED = -1
```

Undefined AC3 stream type.

## Public fields

### bitrate

```
public final int bitrate
```

The bitrate of audio samples.

### channelCount

```
public final int channelCount
```

The number of audio channels

### frameSize

```
public final int frameSize
```

The size of the frame.

### mimeType

```
public final @Nullable String mimeType
```

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

### sampleCount

```
public final int sampleCount
```

Number of audio samples in the frame.

### sampleRate

```
public final int sampleRate
```

The audio sampling rate in Hz.

### streamType

```
@Ac3Util.SyncFrameInfo.StreamType
public final int streamType
```

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