11#ifndef __AUDACITY_DEVICECHANGE_H__
12#define __AUDACITY_DEVICECHANGE_H__
19#if defined(EXPERIMENTAL_DEVICE_CHANGE_HANDLER)
23#if defined(__WXMSW__) || defined(__WXMAC__) || defined(HAVE_LIBUDEV_H)
24#define HAVE_DEVICE_CHANGE
27#if defined(HAVE_DEVICE_CHANGE)
31class DeviceChangeInterface
34 virtual ~DeviceChangeInterface() {};
37 virtual void Enable(
bool enable =
true) = 0;
40class DeviceChangeHandler
45 DeviceChangeHandler();
46 virtual ~DeviceChangeHandler();
48 void Enable(
bool enable =
true);
50 virtual void DeviceChangeNotification() = 0;
54 void OnTimer(wxTimerEvent & evt);
56 std::unique_ptr<DeviceChangeInterface> mListener;
An object that sends messages to an open-ended list of subscribed callbacks.
A move-only handle representing a connection to a Publisher.
AuthorizationHandler handler