- /* Alignment: act as a proxy for the diskstream */
-
- XMLNode* align_node = new XMLNode (X_("alignment"));
- switch (_diskstream->alignment_style()) {
- case ExistingMaterial:
- snprintf (buf, sizeof (buf), X_("existing"));
- break;
- case CaptureTime:
- snprintf (buf, sizeof (buf), X_("capture"));
- break;
- }
- align_node->add_property (X_("style"), buf);
- root.add_child_nocopy (*align_node);
-
- XMLNode* remote_control_node = new XMLNode (X_("remote_control"));
- snprintf (buf, sizeof (buf), "%d", _remote_control_id);
- remote_control_node->add_property (X_("id"), buf);
- root.add_child_nocopy (*remote_control_node);
-
- switch (_mode) {
- case Normal:
- root.add_property (X_("mode"), X_("normal"));
- break;
- case Destructive:
- root.add_property (X_("mode"), X_("destructive"));
- break;
- }
-
- /* we don't return diskstream state because we don't
- own the diskstream exclusively. control of the diskstream
- state is ceded to the Session, even if we create the
- diskstream.
- */
+ root.add_property("playback_channel-mode", enum_2_string(get_playback_channel_mode()));
+ root.add_property("capture_channel-mode", enum_2_string(get_capture_channel_mode()));
+ snprintf (buf, sizeof(buf), "0x%x", get_playback_channel_mask());
+ root.add_property("playback-channel-mask", buf);
+ snprintf (buf, sizeof(buf), "0x%x", get_capture_channel_mask());
+ root.add_property("capture-channel-mask", buf);