| 409 | } |
| 410 | |
| 411 | static bool HasVisibleSpectralView(WaveTrack *wt) |
| 412 | { |
| 413 | auto &view = ChannelView::Get(*wt->GetChannel(0)); |
| 414 | if (auto waveChannelViewPtr = dynamic_cast<WaveChannelView*>(&view)) { |
| 415 | const auto range = waveChannelViewPtr->GetSubViews(); |
| 416 | return std::any_of( range.begin(), range.end(), |
| 417 | [](const auto &pair){ |
| 418 | return dynamic_cast<SpectrumView*>(pair.second.get()); } ); |
| 419 | } |
| 420 | return false; |
| 421 | } |
| 422 | |
| 423 | static unsigned CountVisibleSpectralViews( AudacityProject &project ) |
| 424 | { |
nothing calls this directly
no test coverage detected