mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-06 07:09:39 +02:00
MixerToolBar.cpp: fix input slider enabled status to match AudioIO::mInputMixerWorks
This commit is contained in:
parent
d2d876d9a5
commit
dbf7942e1d
@ -119,6 +119,11 @@ void MixerToolBar::Populate()
|
|||||||
wxFocusEventHandler(MixerToolBar::OnFocus),
|
wxFocusEventHandler(MixerToolBar::OnFocus),
|
||||||
NULL,
|
NULL,
|
||||||
this);
|
this);
|
||||||
|
// Show or hide the input slider based on whether it works
|
||||||
|
mInputSlider->Enable(gAudioIO->InputMixerWorks());
|
||||||
|
SetToolTips();
|
||||||
|
|
||||||
|
UpdateControls();
|
||||||
|
|
||||||
// Add a little space
|
// Add a little space
|
||||||
Add(2, -1);
|
Add(2, -1);
|
||||||
@ -204,6 +209,9 @@ void MixerToolBar::UpdateControls()
|
|||||||
float playbackVolume;
|
float playbackVolume;
|
||||||
int inputSource;
|
int inputSource;
|
||||||
|
|
||||||
|
// Show or hide the input slider based on whether it works
|
||||||
|
mInputSlider->Enable(gAudioIO->InputMixerWorks());
|
||||||
|
|
||||||
gAudioIO->GetMixer(&inputSource, &inputVolume, &playbackVolume);
|
gAudioIO->GetMixer(&inputSource, &inputVolume, &playbackVolume);
|
||||||
|
|
||||||
if (mOutputSlider->Get() != playbackVolume) {
|
if (mOutputSlider->Get() != playbackVolume) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user