MCPcopy Create free account
hub / github.com/audacity/audacity / OnTrackGainDec

Function OnTrackGainDec

src/menus/TrackMenus.cpp:996–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

994}
995
996void 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
1009void OnTrackMenu(const CommandContext &context)
1010{

Callers

nothing calls this directly

Calls 4

GetFunction · 0.85
SetTrackGainFunction · 0.85
GetMethod · 0.45
DecreaseMethod · 0.45

Tested by

no test coverage detected