| 42 | } |
| 43 | |
| 44 | double Playhead::computePlayheadPositionPixel(double inPlayheadPositionSeconds, |
| 45 | double inSampleDuration, |
| 46 | double inBaseNumPixelPerSecond, |
| 47 | double inZoomLevel, |
| 48 | int inWidth) |
| 49 | { |
| 50 | auto playhead_pos = |
| 51 | inPlayheadPositionSeconds / inSampleDuration |
| 52 | * std::min(inBaseNumPixelPerSecond * inZoomLevel * inSampleDuration, static_cast<double>(inWidth)); |
| 53 | return jlimit(0.0, static_cast<double>(inWidth), playhead_pos); |
| 54 | } |
| 55 | |
| 56 | void Playhead::setZoomLevel(double inZoomLevel) |
| 57 | { |
nothing calls this directly
no outgoing calls
no test coverage detected