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

Method PlayDefault

src/toolbars/ControlToolBar.cpp:591–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591void ControlToolBar::PlayDefault()
592{
593 // Let control-down have precedence over shift state
594 const bool cutPreview = mPlay->WasControlDown();
595 const bool newDefault = !cutPreview &&
596 !mPlay->WasShiftDown();
597 ProjectAudioManager::Get( mProject )
598 .PlayCurrentRegion(newDefault, cutPreview);
599}
600
601/*! @excsafety{Strong} -- For state of current project's tracks */
602void ControlToolBar::OnRecord(wxCommandEvent &evt)

Callers

nothing calls this directly

Calls 4

GetFunction · 0.85
WasControlDownMethod · 0.80
WasShiftDownMethod · 0.80
PlayCurrentRegionMethod · 0.80

Tested by

no test coverage detected