app: play a recording's own sound and read a pause's place from the player
The review screen carried two workarounds for rune's video player: tick ignored the player's place while a clip was paused because the first pause read zero, and the player was muted for good because its sound never kept the clock, so the soundtrack came from an audio-only player of the whole file, kept in step by keep_in_step. Rune now holds the pause's picture and time and reads a video's sound ahead of the clock, so the video player carries the sound of a single-track recording itself, and tick reads the place whatever the playback state. A recording with several tracks still cuts one player per source, so the channels stay hearable apart; the video stays muted and keep_in_step keeps those players with the pictures.
This commit is contained in:
1 parent
5bf262b82b
commit
5cbf284841
2 files changed
+37
-39
No files matched your search
@@ -30,8 +30,6 @@ Check: pause and ask `Player::time()`; it answers 0 while the clip sits near its
|
||||
Fix: report nothing when the clip's clock has stopped, so `time()` falls back to the clip's own
|
||||
place.
|
||||
|
||||
The app works around it in `app/src/screens/review.rs`: `tick` ignores the player's place while
|
||||
the clip is paused and keeps its own.
|
||||
|
||||
## 3. One reader for pictures and sound stamps the sound wrong
|
||||
|
||||
@@ -39,9 +37,6 @@ A video player asks Media Foundation for both streams from one reader, and that
|
||||
the sound from its own clock instead of the clip's. The sound then never lines up with the clock
|
||||
and plays silent.
|
||||
|
||||
The app works around it in `app/src/screens/review.rs` with a second, audio-only player over the
|
||||
same file, kept in step by `keep_in_step`.
|
||||
|
||||
## Cherry-picks on the vendored checkout
|
||||
|
||||
Rune comes from `app/vendor/rune`, a checkout of `63ad0209` on branch `ported`, carrying two
|
||||
@@ -56,4 +51,4 @@ the refactors that landed since):
|
||||
|
||||
`app/Cargo.toml` points `rune`, `rune-kit` and `rune-notify` at the checkout's crates by path.
|
||||
To take a newer upstream rev: fetch in `app/vendor/rune`, rebase or re-apply the four commits
|
||||
of `ported` on the new rev, and drop the workarounds below once the fixes arrive upstream.
|
||||
of `ported` on the new rev.
|
||||
Reference in new issue
Block a user