mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-18 14:36:13 +01:00
Make static "Destroy" methods for certain singletons unnecessary.
This commit is contained in:
@@ -51,9 +51,6 @@ class DeviceManager final
|
||||
/// Gets the singleton instance
|
||||
static DeviceManager* Instance();
|
||||
|
||||
/// Releases memory assosiated with the singleton
|
||||
static void Destroy();
|
||||
|
||||
/// Gets a NEW list of devices by terminating and restarting portaudio
|
||||
/// Assumes that DeviceManager is only used on the main thread.
|
||||
void Rescan();
|
||||
@@ -74,7 +71,7 @@ class DeviceManager final
|
||||
protected:
|
||||
//private constructor - Singleton.
|
||||
DeviceManager();
|
||||
virtual ~DeviceManager();
|
||||
~DeviceManager();
|
||||
/// Does an initial scan.
|
||||
/// Called by GetInputDeviceMaps and GetOutputDeviceMaps when needed.
|
||||
void Init();
|
||||
|
||||
Reference in New Issue
Block a user