| 65 | |
| 66 | namespace { |
| 67 | void GetTimeTrackData |
| 68 | (const AudacityProject &project, const TimeTrack &tt, |
| 69 | double &dBRange, bool &dB, float &zoomMin, float &zoomMax) |
| 70 | { |
| 71 | const auto &viewInfo = ViewInfo::Get( project ); |
| 72 | dBRange = DecibelScaleCutoff.Read(); |
| 73 | dB = tt.GetDisplayLog(); |
| 74 | zoomMin = tt.GetRangeLower(), zoomMax = tt.GetRangeUpper(); |
| 75 | if (dB) { |
| 76 | // MB: silly way to undo the work of GetWaveYPos while still getting a logarithmic scale |
| 77 | zoomMin = LINEAR_TO_DB(std::max(1.0e-7, double(zoomMin))) / dBRange + 1.0; |
| 78 | zoomMax = LINEAR_TO_DB(std::max(1.0e-7, double(zoomMax))) / dBRange + 1.0; |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | UIHandlePtr EnvelopeHandle::TimeTrackHitTest( |
no test coverage detected