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

Method Expose

src/toolbars/MeterToolBar.cpp:445–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445bool MeterToolBar::Expose( bool show )
446{
447 auto &projectAudioIO = ProjectAudioIO::Get( mProject );
448 if( show ) {
449 if( mPlayMeter ) {
450 projectAudioIO.SetPlaybackMeter( mPlayMeter->GetMeter() );
451 }
452
453 if( mRecordMeter ) {
454 projectAudioIO.SetCaptureMeter( mRecordMeter->GetMeter() );
455 }
456 } else {
457 if( mPlayMeter &&
458 projectAudioIO.GetPlaybackMeter() == mPlayMeter->GetMeter() ) {
459 projectAudioIO.SetPlaybackMeter( nullptr );
460 }
461
462 if( mRecordMeter &&
463 projectAudioIO.GetCaptureMeter() == mRecordMeter->GetMeter() ) {
464 projectAudioIO.SetCaptureMeter( nullptr );
465 }
466 }
467
468 return ToolBar::Expose( show );
469}
470
471int MeterToolBar::GetInitialWidth()
472{

Callers

nothing calls this directly

Calls 4

GetFunction · 0.85
GetMeterMethod · 0.80
SetPlaybackMeterMethod · 0.45
SetCaptureMeterMethod · 0.45

Tested by

no test coverage detected