Audacity  3.0.3
Classes | Typedefs | Functions
DeviceManager.h File Reference
#include <chrono>
#include <vector>
#include <wx/event.h>
#include <wx/string.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

 wxDECLARE_EXPORTED_EVENT (AUDIO_DEVICES_API, EVT_RESCANNED_DEVICES, wxEvent)
 
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 54 of file DeviceManager.cpp.

55 {
56  wxString ret;
57  ret = map->deviceString;
58  if (map->totalSources > 1)
59  ret += wxT(": ") + map->sourceString;
60 
61  return ret;
62 }

References DeviceSourceMap::deviceString, DeviceSourceMap::sourceString, and DeviceSourceMap::totalSources.

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

Here is the caller graph for this function:

◆ wxDECLARE_EXPORTED_EVENT()

wxDECLARE_EXPORTED_EVENT ( AUDIO_DEVICES_API  ,
EVT_RESCANNED_DEVICES  ,
wxEvent   
)
DeviceSourceMap::deviceString
wxString deviceString
Definition: DeviceManager.h:42
DeviceSourceMap::totalSources
int totalSources
Definition: DeviceManager.h:39
DeviceSourceMap::sourceString
wxString sourceString
Definition: DeviceManager.h:41