- // 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();
+ enum HoldDevices {
+ HOLD_NO_DEVICES,
+
+ // Note: 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.
+ HOLD_ALSA_DEVICES
+ };
+ std::map<DeviceSpec, DeviceInfo> get_devices(HoldDevices hold_devices);