1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 06:01:13 +02: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:
Paul Licameli
2019-06-10 14:25:50 -04:00
parent 46bf5a82fc
commit 42a4f55ffe
44 changed files with 180 additions and 29 deletions

View File

@@ -1066,6 +1066,8 @@ void MeterPanel::OnMeterUpdate(wxTimerEvent & WXUNUSED(event))
return;
}
auto gAudioIO = AudioIO::Get();
// There may have been several update messages since the last
// time we got to this function. Catch up to real-time by
// popping them off until there are none left. It is necessary
@@ -1866,6 +1868,7 @@ void MeterPanel::StartMonitoring()
{
bool start = !mMonitoring;
auto gAudioIO = AudioIO::Get();
if (gAudioIO->IsMonitoring()){
gAudioIO->StopStream();
}
@@ -1884,6 +1887,7 @@ void MeterPanel::StartMonitoring()
void MeterPanel::StopMonitoring(){
mMonitoring = false;
auto gAudioIO = AudioIO::Get();
if (gAudioIO->IsMonitoring()){
gAudioIO->StopStream();
}