- std::map<DeviceSpec, DeviceInfo> get_devices() const;
- void set_name(DeviceSpec device_spec, const std::string &name);
+
+ // Note: This operation holds all ALSA devices (see ALSAPool::get_devices()).
+ // You will need to call set_input_mapping() to get the hold state correctly,
+ // or every card will be held forever.
+ std::map<DeviceSpec, DeviceInfo> get_devices();
+
+ // See comments on ALSAPool::get_card_state().
+ ALSAPool::Device::State get_alsa_card_state(unsigned index)
+ {
+ return alsa_pool.get_card_state(index);
+ }
+
+ void set_display_name(DeviceSpec device_spec, const std::string &name);