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

Function OnTrackPanRight

src/menus/TrackMenus.cpp:956–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954}
955
956void OnTrackPanRight(const CommandContext &context)
957{
958 auto &project = context.project;
959 auto &trackPanel = TrackPanel::Get( project );
960
961 const auto track = TrackFocus::Get( project ).Get();
962 if (track) track->TypeSwitch( [&](WaveTrack &wt) {
963 LWSlider *slider = WaveTrackControls::PanSlider( trackPanel, wt );
964 slider->Increase(1);
965 SetTrackPan(project, &wt, slider);
966 });
967}
968
969void OnTrackGain(const CommandContext &context)
970{

Callers

nothing calls this directly

Calls 4

GetFunction · 0.85
SetTrackPanFunction · 0.85
GetMethod · 0.45
IncreaseMethod · 0.45

Tested by

no test coverage detected