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

Function InactivatePlayRegion

src/SelectUtilities.cpp:182–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void InactivatePlayRegion(AudacityProject &project)
183{
184 auto &viewInfo = ViewInfo::Get( project );
185 auto &playRegion = viewInfo.playRegion;
186 auto &selectedRegion = viewInfo.selectedRegion;
187 // Set only the times that are fetched by the playback engine, but not
188 // the last-active times that are used for display.
189 playRegion.SetActive( false );
190 playRegion.SetTimes( selectedRegion.t0(), selectedRegion.t1() );
191
192 // Ensure the proper state of looping in the menu
193 CommandManager::Get(project).UpdateCheckmarks();
194}
195
196void TogglePlayRegion(AudacityProject &project)
197{

Callers 4

TogglePlayRegionFunction · 0.85
ClearPlayRegionFunction · 0.85
HandleQPClickMethod · 0.85
OnLoopMethod · 0.85

Calls 4

GetFunction · 0.85
UpdateCheckmarksMethod · 0.80
SetActiveMethod · 0.45
SetTimesMethod · 0.45

Tested by

no test coverage detected