mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-07 15:49:42 +02:00
Bug 1366 - Using the sliders in Mixer Toolbar in a Project-2 alters levels in on-going recording (or playback) in Project-1
This commit is contained in:
parent
06cdddadec
commit
f6cfa0597e
@ -127,6 +127,20 @@ void MixerToolBar::Populate()
|
|||||||
|
|
||||||
// Add a little space
|
// Add a little space
|
||||||
Add(2, -1);
|
Add(2, -1);
|
||||||
|
|
||||||
|
wxTheApp->Bind(EVT_AUDIOIO_CAPTURE,
|
||||||
|
&MixerToolBar::OnAudioCapture,
|
||||||
|
this);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MixerToolBar::OnAudioCapture(wxCommandEvent & event)
|
||||||
|
{
|
||||||
|
AudacityProject *p = &mProject;
|
||||||
|
if (event.GetEventObject() != p)
|
||||||
|
{
|
||||||
|
mInputSlider->Enable(!event.GetInt());
|
||||||
|
mOutputSlider->Enable(!event.GetInt());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Also from SelectionBar;
|
//Also from SelectionBar;
|
||||||
@ -213,7 +227,6 @@ void MixerToolBar::UpdateControls()
|
|||||||
|
|
||||||
// Show or hide the input slider based on whether it works
|
// Show or hide the input slider based on whether it works
|
||||||
auto gAudioIO = AudioIO::Get();
|
auto gAudioIO = AudioIO::Get();
|
||||||
mInputSlider->Enable(gAudioIO->InputMixerWorks());
|
|
||||||
|
|
||||||
gAudioIO->GetMixer(&inputSource, &inputVolume, &playbackVolume);
|
gAudioIO->GetMixer(&inputSource, &inputVolume, &playbackVolume);
|
||||||
|
|
||||||
|
@ -46,6 +46,8 @@ class MixerToolBar final : public ToolBar {
|
|||||||
|
|
||||||
void OnSlider(wxCommandEvent & event);
|
void OnSlider(wxCommandEvent & event);
|
||||||
|
|
||||||
|
void OnAudioCapture(wxCommandEvent & event);
|
||||||
|
|
||||||
void ShowOutputGainDialog();
|
void ShowOutputGainDialog();
|
||||||
void ShowInputGainDialog();
|
void ShowInputGainDialog();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user