mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01: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:
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "Project.h"
|
||||
|
||||
#include "AudioIO.h"
|
||||
#include "AudioIOBase.h"
|
||||
|
||||
#include "DeviceChange.h" // for HAVE_DEVICE_CHANGE
|
||||
#include "toolbars/DeviceToolBar.h"
|
||||
@@ -259,7 +259,7 @@ void DeviceManager::Rescan()
|
||||
if (m_inited) {
|
||||
// check to see if there is a stream open - can happen if monitoring,
|
||||
// but otherwise Rescan() should not be available to the user.
|
||||
auto gAudioIO = AudioIO::Get();
|
||||
auto gAudioIO = AudioIOBase::Get();
|
||||
if (gAudioIO) {
|
||||
if (gAudioIO->IsMonitoring())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user