-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
220 additions
and
39 deletions.
There are no files selected for viewing
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
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
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
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
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
49 changes: 49 additions & 0 deletions
49
main/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/OggSeekPoint.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,49 @@ | ||
package com.sedmelluq.discord.lavaplayer.container.ogg; | ||
|
||
public class OggSeekPoint { | ||
private final long position; | ||
private final long granulePosition; | ||
private final long timecode; | ||
private final long pageSequence; | ||
|
||
/** | ||
* @param position The position of the seek point in the stream, in bytes. | ||
* @param granulePosition The granule position of the seek point in the stream. | ||
* @param timecode The time of the seek point in the stream, in milliseconds. | ||
* @param pageSequence The page to what this seek point belong. | ||
*/ | ||
public OggSeekPoint(long position, long granulePosition, long timecode, long pageSequence) { | ||
this.position = position; | ||
this.granulePosition = granulePosition; | ||
this.timecode = timecode; | ||
this.pageSequence = pageSequence; | ||
} | ||
|
||
/** | ||
* @return The position of the seek point in the stream, in bytes. | ||
*/ | ||
public long getPosition() { | ||
return position; | ||
} | ||
|
||
/** | ||
* @return The granule position of the seek point in the stream. | ||
*/ | ||
public long getGranulePosition() { | ||
return granulePosition; | ||
} | ||
|
||
/** | ||
* @return The timecode of the seek point in the stream, in milliseconds. | ||
*/ | ||
public long getTimecode() { | ||
return timecode; | ||
} | ||
|
||
/** | ||
* @return The page to what this seek point belong. | ||
*/ | ||
public long getPageSequence() { | ||
return pageSequence; | ||
} | ||
} |
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
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
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
Oops, something went wrong.