Restore the playhead's own scene assertion
Browse files at this commit734c321c676e18db3c4724c4ba9300ced1d9ed57Parent: 5832d81- test
- restore the playhead's own scene assertion
1 changed file +3 -0
crates/engine/tests/speed.rsmodified+3 -0
| @@ -400,6 +400,7 @@ fn a_2x_clip_keeps_the_beeps_pitch() { | |||
| 400 | ); | 400 | ); |
| 401 | } | 401 | } |
| 402 | 402 | ||
| 403 | + | ||
| 403 | /// The playhead follows the re-rate: the source frame under it is the same | 404 | /// The playhead follows the re-rate: the source frame under it is the same |
| 404 | /// frame after the write (the scene does not change with the rate), through | 405 | /// frame after the write (the scene does not change with the rate), through |
| 405 | /// the real session doors -- commit and the live samples of a drag both. | 406 | /// the real session doors -- commit and the live samples of a drag both. |
| @@ -416,6 +417,8 @@ fn the_playhead_follows_the_re_rate() { | |||
| 416 | .expect("room for it"); | 417 | .expect("room for it"); |
| 417 | let now = session.now(); | 418 | let now = session.now(); |
| 418 | let after = session.video_source_frame_at(now); | 419 | let after = session.video_source_frame_at(now); |
| 420 | + assert_eq!(before, after, "the same source frame is under the playhead"); | ||
| 421 | + assert!((now - 1.0).abs() < 2.0 / FPS, "and the minute moved to {now}"); | ||
| 419 | // The live path keeps it across the whole gesture: two samples of a drag | 422 | // The live path keeps it across the whole gesture: two samples of a drag |
| 420 | // leave the same frame playing, not the one the rate walked past. | 423 | // leave the same frame playing, not the one the rate walked past. |
| 421 | session | 424 | session |