-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve discontinuities when seeking into fragmented AC4 audio
- Loading branch information
Hudson Gilmore
committed
Feb 22, 2023
1 parent
0c17605
commit 31688f8
Showing
2 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
libraries/exoplayer/src/main/java/androidx/media3/exoplayer/source/SampleMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package androidx.media3.exoplayer.source; | ||
|
||
import androidx.annotation.Nullable; | ||
import androidx.media3.common.C; | ||
import androidx.media3.extractor.TrackOutput; | ||
|
||
/* package */ final class SampleMetadata { | ||
final long timeUs; | ||
|
||
@C.BufferFlags | ||
final int flags; | ||
|
||
final int size; | ||
|
||
final long absoluteOffset; | ||
|
||
@Nullable | ||
final TrackOutput.CryptoData cryptoData; | ||
|
||
SampleMetadata(long timeUs, @C.BufferFlags int flags, int size, long absoluteOffset, @Nullable TrackOutput.CryptoData cryptoData) { | ||
this.timeUs = timeUs; | ||
this.flags = flags; | ||
this.size = size; | ||
this.absoluteOffset = absoluteOffset; | ||
this.cryptoData = cryptoData; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters