public static Ossia.Parameter GetNodeParameter(Ossia.Node node) { IntPtr addr; ossia_preset_result_enum code; code = ossia_devices_get_node_parameter(node.GetNode(), &addr); if (code != ossia_preset_result_enum.OSSIA_PRESETS_OK) { throw new Exception("Error code " + code); } return(new Ossia.Parameter(addr)); }
public static Ossia.Node GetChildFromName(Ossia.Node root, string childname) { IntPtr childptr; ossia_preset_result_enum code; code = ossia_devices_get_child(root.GetNode(), "/" + root.GetName() + "/" + childname, &childptr); if (code != ossia_preset_result_enum.OSSIA_PRESETS_OK) { throw new Exception("Error code " + code); } return(new Ossia.Node(childptr)); }