| 994 | } |
| 995 | |
| 996 | void OnTrackGainDec(const CommandContext &context) |
| 997 | { |
| 998 | auto &project = context.project; |
| 999 | auto &trackPanel = TrackPanel::Get( project ); |
| 1000 | |
| 1001 | const auto track = TrackFocus::Get( project ).Get(); |
| 1002 | if (track) track->TypeSwitch( [&](WaveTrack &wt) { |
| 1003 | LWSlider *slider = WaveTrackControls::VolumeSlider( trackPanel, wt ); |
| 1004 | slider->Decrease(1); |
| 1005 | SetTrackGain(project, &wt, slider); |
| 1006 | }); |
| 1007 | } |
| 1008 | |
| 1009 | void OnTrackMenu(const CommandContext &context) |
| 1010 | { |
nothing calls this directly
no test coverage detected