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

Method StatusWidthFunction

src/ProjectAudioManager.cpp:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90auto ProjectAudioManager::StatusWidthFunction(
91 const AudacityProject &project, StatusBarField field )
92 -> ProjectStatus::StatusWidthResult
93{
94 if ( field == RateStatusBarField() ) {
95 auto &audioManager = ProjectAudioManager::Get( project );
96 int rate = audioManager.mDisplayedRate;
97 return {
98 { { FormatRate( rate ) } },
99 50
100 };
101 }
102 return {};
103}
104
105namespace {
106// The implementation is general enough to allow backwards play too

Callers

nothing calls this directly

Calls 3

RateStatusBarFieldFunction · 0.85
GetFunction · 0.85
FormatRateFunction · 0.85

Tested by

no test coverage detected