Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3c2b54b5
authored
Jul 26, 2022
by
hmzh
Committed by
Marc Baechinger
Oct 19, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add seeking to arbitrary time points
PiperOrigin-RevId: 463328405
parent
dc65aaef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
110 additions
and
4 deletions
testdata/src/test/assets/extractordumps/midi/Twinkle.mid.0.dump
testdata/src/test/assets/extractordumps/midi/Twinkle.mid.unknown_length.dump
testdata/src/test/assets/extractordumps/midi/seek_test_with_non_note_events.mid.dump
testdata/src/test/assets/media/midi/seek_test_with_non_note_events.mid
testdata/src/test/assets/extractordumps/midi/Twinkle.mid.0.dump
View file @
3c2b54b5
seekMap:
seekMap:
isSeekable =
fals
e
isSeekable =
tru
e
duration = UNSET TIME
duration = UNSET TIME
getPosition(0) = [[timeUs=0, position=0]]
getPosition(0) = [[timeUs=0, position=14]]
getPosition(1) = [[timeUs=1, position=14]]
numberOfTracks = 1
numberOfTracks = 1
track 0:
track 0:
total output bytes = 96
total output bytes = 96
...
...
testdata/src/test/assets/extractordumps/midi/Twinkle.mid.unknown_length.dump
View file @
3c2b54b5
seekMap:
seekMap:
isSeekable =
fals
e
isSeekable =
tru
e
duration = UNSET TIME
duration = UNSET TIME
getPosition(0) = [[timeUs=0, position=0]]
getPosition(0) = [[timeUs=0, position=14]]
getPosition(1) = [[timeUs=1, position=14]]
numberOfTracks = 1
numberOfTracks = 1
track 0:
track 0:
total output bytes = 96
total output bytes = 96
...
...
testdata/src/test/assets/extractordumps/midi/seek_test_with_non_note_events.mid.dump
0 → 100644
View file @
3c2b54b5
seekMap:
isSeekable = true
duration = UNSET TIME
getPosition(0) = [[timeUs=0, position=14]]
getPosition(1) = [[timeUs=1, position=14]]
numberOfTracks = 1
track 0:
total output bytes = 31
sample count = 23
format 0:
sampleMimeType = audio/midi
sample 0:
time = 0
flags = -2147483647
data = length 3, hash 70FB
sample 1:
time = 0
flags = -2147483647
data = length 3, hash FFFF56B6
sample 2:
time = 0
flags = -2147483647
data = length 7, hash C95FA238
sample 3:
time = 0
flags = -2147483647
data = length 3, hash FFFF494C
sample 4:
time = 0
flags = -2147483647
data = length 6, hash 37A83E76
sample 5:
time = 4999999
flags = -2147483647
data = length 3, hash 8DE
sample 6:
time = 5500000
flags = 1
data = length 0, hash 1
sample 7:
time = 5600000
flags = 1
data = length 0, hash 1
sample 8:
time = 5700000
flags = 1
data = length 0, hash 1
sample 9:
time = 5800000
flags = 1
data = length 0, hash 1
sample 10:
time = 5900000
flags = 1
data = length 0, hash 1
sample 11:
time = 5999999
flags = 1
data = length 3, hash FFFED7B2
sample 12:
time = 6099999
flags = 1
data = length 0, hash 1
sample 13:
time = 6199999
flags = 1
data = length 0, hash 1
sample 14:
time = 6299999
flags = 1
data = length 0, hash 1
sample 15:
time = 6399999
flags = 1
data = length 0, hash 1
sample 16:
time = 6499999
flags = 1
data = length 0, hash 1
sample 17:
time = 6599999
flags = 1
data = length 0, hash 1
sample 18:
time = 6699999
flags = 1
data = length 0, hash 1
sample 19:
time = 6799999
flags = 1
data = length 0, hash 1
sample 20:
time = 6899999
flags = 1
data = length 0, hash 1
sample 21:
time = 6999999
flags = 1
data = length 0, hash 1
sample 22:
time = 7041665
flags = 1
data = length 3, hash FFFE9B23
tracksEnded = true
testdata/src/test/assets/media/midi/seek_test_with_non_note_events.mid
0 → 100644
View file @
3c2b54b5
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment