mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-24 06:10:09 +01:00
Prepare to split AudioIOBase from AudioIO...
... New files, but (almost) empty; don't use the global variable gAudioIO, but use one of two accessor function names (which are the same function for now). AudioIOBase will have fewer dependencies than AudioIO -- in particular, no dependency on tracks. It won't include StartStream. It will contain functions to query the present state of streams, and device capabilities.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/toolbar.h>
|
||||
|
||||
#include "AudioIO.h"
|
||||
#include "AudioIOBase.h"
|
||||
#include "LabelTrack.h"
|
||||
#include "Menus.h"
|
||||
#include "ModuleManager.h"
|
||||
@@ -1590,6 +1590,7 @@ void NyqBench::OnRunUpdate(wxUpdateUIEvent & e)
|
||||
wxToolBar *tbar = GetToolBar();
|
||||
wxMenuBar *mbar = GetMenuBar();
|
||||
|
||||
auto gAudioIO = AudioIOBase::Get();
|
||||
if (p && gAudioIO->IsBusy()) {
|
||||
mbar->Enable(ID_GO, false);
|
||||
mbar->Enable(ID_STOP, false);
|
||||
|
||||
Reference in New Issue
Block a user