| 232 | } |
| 233 | |
| 234 | double TrimSelection::sampleToXPosition(int sample) const { |
| 235 | double posRatio = (static_cast<double>(sample) / mSampleRate) / audioSampleDuration; |
| 236 | return (posRatio * mThumbnailRect.getWidth()) + mThumbnailRect.getX(); |
| 237 | } |
| 238 | |
| 239 | int TrimSelection::timeToSample(double time) const { |
| 240 | return static_cast<int>(time * mSampleRate); |
nothing calls this directly
no outgoing calls
no test coverage detected