Audacity  2.2.2
Classes | Typedefs | Functions
DeviceManager.h File Reference
#include "Experimental.h"
#include <vector>
#include "wx/wx.h"

Go to the source code of this file.


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


typedef struct DeviceSourceMap DeviceSourceMap


wxString MakeDeviceSourceString (const DeviceSourceMap *map)

Typedef Documentation

Function Documentation

wxString MakeDeviceSourceString ( const DeviceSourceMap map)

Definition at line 64 of file DeviceManager.cpp.

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

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

65 {
66  wxString ret;
67  ret = map->deviceString;
68  if (map->totalSources > 1)
69  ret += wxT(": ") + map->sourceString;
71  return ret;
72 }
wxString sourceString
Definition: DeviceManager.h:36
wxString deviceString
Definition: DeviceManager.h:37