This returns true if we're a spectral editing track.
| 115 | |
| 116 | // This returns true if we're a spectral editing track. |
| 117 | inline bool isSpectralSelectionView(const ChannelView &channelView) { |
| 118 | const WaveChannel *pChannel{}; |
| 119 | return |
| 120 | channelView.IsSpectral() && |
| 121 | (pChannel = channelView.FindChannel<const WaveChannel>().get()) && |
| 122 | SpectrogramSettings::Get(*pChannel).SpectralSelectionEnabled(); |
| 123 | } |
| 124 | |
| 125 | enum SelectionBoundary { |
| 126 | SBNone, |
no test coverage detected