Audacity 3.2.0
Classes | Typedefs | Functions
DeviceManager.h File Reference
#include <chrono>
#include <vector>
#include <wx/string.h>
#include "DeviceChange.h"
Include dependency graph for DeviceManager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DeviceSourceMap
 
class  DeviceManager
 A singleton that manages the audio devices known to Audacity. More...
 

Typedefs

typedef struct DeviceSourceMap DeviceSourceMap
 

Functions

AUDIO_DEVICES_API wxString MakeDeviceSourceString (const DeviceSourceMap *map)
 

Typedef Documentation

◆ DeviceSourceMap

Function Documentation

◆ MakeDeviceSourceString()

AUDIO_DEVICES_API wxString MakeDeviceSourceString ( const DeviceSourceMap map)

Definition at line 52 of file DeviceManager.cpp.

53{
54 wxString ret;
55 ret = map->deviceString;
56 if (map->totalSources > 1)
57 ret += wxT(": ") + map->sourceString;
58
59 return ret;
60}
wxT("CloseDown"))
wxString sourceString
Definition: DeviceManager.h:34
wxString deviceString
Definition: DeviceManager.h:35

References DeviceSourceMap::deviceString, DeviceSourceMap::sourceString, DeviceSourceMap::totalSources, and wxT().

Referenced by DeviceToolBar::ChangeDevice(), AudioSetupToolBar::ChangeDeviceLabel(), AudioSetupToolBar::FillHostDevices(), DeviceToolBar::FillHostDevices(), DevicePrefs::OnHost(), AudioSetupToolBar::UpdatePrefs(), and DeviceToolBar::UpdatePrefs().

Here is the call graph for this function:
Here is the caller graph for this function: