Apply the timeline's framerate and samplerate to all clips
| 528 | |
| 529 | // Apply the timeline's framerate and samplerate to all clips |
| 530 | void Timeline::ApplyMapperToClips() |
| 531 | { |
| 532 | // Clear all cached frames |
| 533 | ClearAllCache(); |
| 534 | |
| 535 | // Loop through all clips |
| 536 | for (auto clip : clips) |
| 537 | { |
| 538 | // Apply framemapper (or update existing framemapper) |
| 539 | apply_mapper_to_clip(clip); |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | // Calculate time of a frame number, based on a framerate |
| 544 | double Timeline::calculate_time(int64_t number, Fraction rate) |
nothing calls this directly
no outgoing calls
no test coverage detected