// The file should be exactly 0.5s long (22050 samples at 44100Hz = 0.5s) // afconvert produces files with elst box having start_time=2112 and segment_duration=22050 // We should report the media duration (0.5s) not the track duration
assert_eq!(
track_info.duration, 22050, "Track duration should be 22050 (from elst segment_duration), got {}",
track_info.duration
);
// Verify the duration represents 0.5 seconds let duration_seconds = track_info.duration as f64 / track_info.time_scale as f64;
assert!(
(duration_seconds - 0.5).abs() < 0.001, "Duration should be 0.5 seconds, got {} seconds",
duration_seconds
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.