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

Method SetMixer

src/widgets/MeterPanel.cpp:769–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769void MeterPanel::SetMixer(wxCommandEvent & WXUNUSED(event))
770{
771#if USE_PORTMIXER
772 if (mSlider)
773 {
774 float inputVolume;
775 float outputVolume;
776 int inputSource;
777
778 Refresh();
779
780 auto gAudioIO = AudioIO::Get();
781 gAudioIO->GetMixer(&inputSource, &inputVolume, &outputVolume);
782
783 if (mIsInput)
784 inputVolume = mSlider->Get();
785 else
786 outputVolume = mSlider->Get();
787
788 gAudioIO->SetMixer(inputSource, inputVolume, outputVolume);
789
790#if wxUSE_ACCESSIBILITY
791 GetAccessible()->NotifyEvent( wxACC_EVENT_OBJECT_VALUECHANGE,
792 this,
793 wxOBJID_CLIENT,
794 wxACC_SELF );
795#endif
796
797 }
798#endif // USE_PORTMIXER
799}
800
801bool MeterPanel::ShowDialog()
802{

Callers 2

setRecordVolumeMethod · 0.45
setPlaybackVolumeMethod · 0.45

Calls 3

GetFunction · 0.85
GetMixerMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected