1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Abstract virtual AudioIOBase::StopStream...

... so that DeviceManager, DeviceToolbar, and PrefsDialog do not depend directly
on AudioIO.

But no function in the base class for starting streams, which would require
mention of Track types, which we want to avoid.
This commit is contained in:
Paul Licameli
2019-06-10 17:36:54 -04:00
parent 240402e56f
commit ccc49f8ccf
6 changed files with 14 additions and 8 deletions

View File

@@ -34,7 +34,7 @@
#include <wx/treebook.h>
#include "../AudioIO.h"
#include "../AudioIOBase.h"
#include "../Prefs.h"
#include "../ShuttleGui.h"
@@ -814,7 +814,7 @@ void PrefsDialog::OnOK(wxCommandEvent & WXUNUSED(event))
SavePreferredPage();
#if USE_PORTMIXER
auto gAudioIO = AudioIO::Get();
auto gAudioIO = AudioIOBase::Get();
if (gAudioIO) {
// We cannot have opened this dialog if gAudioIO->IsAudioTokenActive(),
// per the setting of AudioIONotBusyFlag and AudioIOBusyFlag in