mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
Move members from ControlToolBar into class ProjectAudioManager...
... and ControlToolBar is included in fewer places
This commit is contained in:
@@ -41,7 +41,6 @@ Paul Licameli split from AudacityProject.cpp
|
||||
#include "import/ImportMIDI.h"
|
||||
#include "ondemand/ODManager.h"
|
||||
#include "prefs/QualityPrefs.h"
|
||||
#include "toolbars/ControlToolBar.h"
|
||||
#include "toolbars/MixerToolBar.h"
|
||||
#include "toolbars/SelectionBar.h"
|
||||
#include "toolbars/SpectralSelectionBar.h"
|
||||
@@ -636,8 +635,7 @@ void ProjectManager::OnCloseWindow(wxCloseEvent & event)
|
||||
gAudioIO->IsStreamActive(projectAudioIO.GetAudioIOToken())) {
|
||||
|
||||
// We were playing or recording audio, but we've stopped the stream.
|
||||
wxCommandEvent dummyEvent;
|
||||
ControlToolBar::Get( project ).OnStop(dummyEvent);
|
||||
ProjectAudioManager::Get( project ).Stop();
|
||||
|
||||
projectAudioIO.SetAudioIOToken(0);
|
||||
window.RedrawProject();
|
||||
|
||||
Reference in New Issue
Block a user