// at any given time as a result of an error or hotplug event;
// a card that is held will go to the DEAD state instead.
bool held = false;
+
+ std::string display_name() const { return name + " (" + info + ")"; }
};
void init();
// EMPTY or DEAD state. Only for ALSAInput and for internal use.
void free_card(unsigned index);
- // TODO: Add accessors and/or callbacks about changed state, so that
- // the UI actually stands a chance in using that information.
-
private:
mutable std::mutex mu;
std::vector<Device> devices; // Under mu.