11namespace tracktion {
inline namespace engine
15 : engine (e), type (t),
16 deviceID (
"out_" +
juce::String::toHexString ((t + idToUse).hashCode())),
19 alias = engine.getPropertyStorage().getPropertyItem (SettingID::invalid, getAliasPropName());
22OutputDevice::~OutputDevice()
28 return type +
"out_" + name +
"_alias";
38 if (alias.isNotEmpty())
53 if (alias.isNotEmpty())
54 engine.getPropertyStorage().setPropertyItem (SettingID::invalid, getAliasPropName(), alias);
56 engine.getPropertyStorage().removePropertyItem (SettingID::invalid, getAliasPropName());
64 return name +
" (" +
TRANS(type) +
")";
67bool OutputDevice::isEnabled()
const
74 : owner (d), context (c), edit (c.edit)
78OutputDeviceInstance::~OutputDeviceInstance()
String substring(int startIndex, int endIndex) const
Base class for audio or midi output devices, to which a track's output can be sent.
#define TRANS(stringLiteral)
juce::String getName(LaunchQType t)
Retuns the name of a LaunchQType for display purposes.