mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-27 15:53:49 +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:
@@ -8,7 +8,7 @@
|
||||
#include "../AboutDialog.h"
|
||||
#include "../AllThemeResources.h"
|
||||
#include "../AudacityLogger.h"
|
||||
#include "../AudioIO.h"
|
||||
#include "../AudioIOBase.h"
|
||||
#include "../CrashReport.h"
|
||||
#include "../Dependencies.h"
|
||||
#include "../FileNames.h"
|
||||
@@ -316,6 +316,7 @@ void OnManual(const CommandContext &context)
|
||||
void OnAudioDeviceInfo(const CommandContext &context)
|
||||
{
|
||||
auto &project = context.project;
|
||||
auto gAudioIO = AudioIOBase::Get();
|
||||
wxString info = gAudioIO->GetDeviceInfo();
|
||||
ShowDiagnostics( project, info,
|
||||
_("Audio Device Info"), wxT("deviceinfo.txt") );
|
||||
@@ -325,6 +326,7 @@ void OnAudioDeviceInfo(const CommandContext &context)
|
||||
void OnMidiDeviceInfo(const CommandContext &context)
|
||||
{
|
||||
auto &project = context.project;
|
||||
auto gAudioIO = AudioIOBase::Get();
|
||||
wxString info = gAudioIO->GetMidiDeviceInfo();
|
||||
ShowDiagnostics( project, info,
|
||||
_("MIDI Device Info"), wxT("midideviceinfo.txt") );
|
||||
|
||||
Reference in New Issue
Block a user