Browse Source

clang-format: raise column limit to 62

libpanel_detach
Alexandros Theodotou 11 months ago
parent
commit
b6e8228290
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 2
      .clang-format
  2. 60
      inc/actions/actions.h
  3. 193
      inc/actions/arranger_selections.h
  4. 144
      inc/actions/channel_send_action.h
  5. 90
      inc/actions/chord_action.h
  6. 41
      inc/actions/midi_mapping_action.h
  7. 196
      inc/actions/mixer_selections_action.h
  8. 46
      inc/actions/port_action.h
  9. 56
      inc/actions/port_connection_action.h
  10. 109
      inc/actions/range_action.h
  11. 544
      inc/actions/tracklist_selections.h
  12. 74
      inc/actions/transport_action.h
  13. 62
      inc/actions/undo_manager.h
  14. 48
      inc/actions/undo_stack.h
  15. 78
      inc/actions/undoable_action.h
  16. 43
      inc/audio/audio_function.h
  17. 10
      inc/audio/audio_region.h
  18. 9
      inc/audio/automation_function.h
  19. 59
      inc/audio/automation_point.h
  20. 4
      inc/audio/automation_region.h
  21. 114
      inc/audio/automation_track.h
  22. 36
      inc/audio/automation_tracklist.h
  23. 47
      inc/audio/channel.h
  24. 115
      inc/audio/channel_send.h
  25. 98
      inc/audio/chord_descriptor.h
  26. 47
      inc/audio/chord_object.h
  27. 8
      inc/audio/chord_track.h
  28. 46
      inc/audio/clip.h
  29. 11
      inc/audio/control_port.h
  30. 33
      inc/audio/control_room.h
  31. 45
      inc/audio/curve.h
  32. 86
      inc/audio/engine.h
  33. 4
      inc/audio/engine_dummy.h
  34. 11
      inc/audio/engine_jack.h
  35. 4
      inc/audio/engine_pulse.h
  36. 4
      inc/audio/engine_rtaudio.h
  37. 4
      inc/audio/engine_rtmidi.h
  38. 4
      inc/audio/engine_sdl.h
  39. 8
      inc/audio/engine_windows_mme.h
  40. 6
      inc/audio/exporter.h
  41. 31
      inc/audio/ext_port.h
  42. 76
      inc/audio/fader.h
  43. 8
      inc/audio/foldable_track.h
  44. 32
      inc/audio/graph.h
  45. 15
      inc/audio/graph_node.h
  46. 74
      inc/audio/hardware_processor.h
  47. 3
      inc/audio/instrument_track.h
  48. 10
      inc/audio/kmeter_dsp.h
  49. 28
      inc/audio/marker.h
  50. 4
      inc/audio/marker_track.h
  51. 4
      inc/audio/metronome.h
  52. 20
      inc/audio/midi_event.h
  53. 4
      inc/audio/midi_file.h
  54. 19
      inc/audio/midi_function.h
  55. 90
      inc/audio/midi_mapping.h
  56. 47
      inc/audio/midi_note.h
  57. 17
      inc/audio/midi_region.h
  58. 18
      inc/audio/modulator_macro_processor.h
  59. 3
      inc/audio/modulator_track.h
  60. 5
      inc/audio/peak_dsp.h
  61. 36
      inc/audio/pool.h
  62. 144
      inc/audio/port.h
  63. 49
      inc/audio/port_connection.h
  64. 11
      inc/audio/port_connections_manager.h
  65. 124
      inc/audio/port_identifier.h
  66. 64
      inc/audio/position.h
  67. 56
      inc/audio/quantize_options.h
  68. 6
      inc/audio/rack_controller.h
  69. 8
      inc/audio/recording_event.h
  70. 10
      inc/audio/recording_manager.h
  71. 36
      inc/audio/region.h
  72. 40
      inc/audio/region_identifier.h
  73. 21
      inc/audio/region_link_group.h
  74. 10
      inc/audio/region_link_group_manager.h
  75. 27
      inc/audio/router.h
  76. 8
      inc/audio/rtaudio_device.h
  77. 3
      inc/audio/sample_playback.h
  78. 29
      inc/audio/sample_processor.h
  79. 189
      inc/audio/scale.h
  80. 49
      inc/audio/scale_object.h
  81. 49
      inc/audio/snap_grid.h
  82. 4
      inc/audio/stretcher.h
  83. 41
      inc/audio/supported_file.h
  84. 19
      inc/audio/tempo_track.h
  85. 125
      inc/audio/track.h
  86. 62
      inc/audio/track_lane.h
  87. 35
      inc/audio/track_processor.h
  88. 54
      inc/audio/tracklist.h
  89. 38
      inc/audio/transport.h
  90. 19
      inc/audio/true_peak_dsp.h
  91. 27
      inc/audio/velocity.h
  92. 4
      inc/audio/windows_mmcss.h
  93. 11
      inc/audio/windows_mme_device.h
  94. 3
      inc/gui/accel.h
  95. 129
      inc/gui/backend/arranger_object.h
  96. 73
      inc/gui/backend/arranger_selections.h
  97. 14
      inc/gui/backend/audio_clip_editor.h
  98. 63
      inc/gui/backend/audio_selections.h
  99. 17
      inc/gui/backend/automation_editor.h
  100. 20
      inc/gui/backend/automation_selections.h
  101. Some files were not shown because too many files have changed in this diff Show More

2
.clang-format

@ -62,7 +62,7 @@ BreakConstructorInitializersBeforeComma: false @@ -62,7 +62,7 @@ BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakStringLiterals: false
ContinuationIndentWidth: 2
ColumnLimit: 51
ColumnLimit: 62
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false

60
inc/actions/actions.h

@ -293,15 +293,11 @@ DECLARE_SIMPLE (activate_enable_selected_tracks); @@ -293,15 +293,11 @@ DECLARE_SIMPLE (activate_enable_selected_tracks);
DECLARE_SIMPLE (activate_disable_selected_tracks);
DECLARE_SIMPLE (activate_change_track_color);
DECLARE_SIMPLE (activate_track_set_midi_channel);
DECLARE_SIMPLE (
activate_quick_bounce_selected_tracks);
DECLARE_SIMPLE (activate_quick_bounce_selected_tracks);
DECLARE_SIMPLE (activate_bounce_selected_tracks);
DECLARE_SIMPLE (
activate_selected_tracks_direct_out_to);
DECLARE_SIMPLE (
activate_selected_tracks_direct_out_new);
DECLARE_SIMPLE (
activate_toggle_track_passthrough_input);
DECLARE_SIMPLE (activate_selected_tracks_direct_out_to);
DECLARE_SIMPLE (activate_selected_tracks_direct_out_new);
DECLARE_SIMPLE (activate_toggle_track_passthrough_input);
void
activate_snap_events (
@ -406,28 +402,21 @@ activate_delete_cc_binding ( @@ -406,28 +402,21 @@ activate_delete_cc_binding (
gpointer user_data);
COLD DECLARE_SIMPLE (activate_show_file_browser);
DECLARE_SIMPLE (
activate_toggle_timeline_event_viewer);
DECLARE_SIMPLE (
activate_toggle_editor_event_viewer);
DECLARE_SIMPLE (activate_toggle_timeline_event_viewer);
DECLARE_SIMPLE (activate_toggle_editor_event_viewer);
DECLARE_SIMPLE (activate_insert_silence);
DECLARE_SIMPLE (activate_remove_range);
DECLARE_SIMPLE (
change_state_timeline_playhead_scroll_edges);
DECLARE_SIMPLE (
change_state_timeline_playhead_follow);
DECLARE_SIMPLE (
change_state_editor_playhead_scroll_edges);
DECLARE_SIMPLE (
change_state_editor_playhead_follow);
DECLARE_SIMPLE (change_state_timeline_playhead_scroll_edges);
DECLARE_SIMPLE (change_state_timeline_playhead_follow);
DECLARE_SIMPLE (change_state_editor_playhead_scroll_edges);
DECLARE_SIMPLE (change_state_editor_playhead_follow);
/* Editor functions. */
DECLARE_SIMPLE (activate_editor_function);
DECLARE_SIMPLE (activate_editor_function_lv2);
COLD DECLARE_SIMPLE (
activate_midi_editor_highlighting);
COLD DECLARE_SIMPLE (activate_midi_editor_highlighting);
DECLARE_SIMPLE (activate_rename_track);
DECLARE_SIMPLE (activate_rename_arranger_object);
@ -444,17 +433,14 @@ DECLARE_SIMPLE (activate_export_midi_regions); @@ -444,17 +433,14 @@ DECLARE_SIMPLE (activate_export_midi_regions);
DECLARE_SIMPLE (activate_quick_bounce_selections);
DECLARE_SIMPLE (activate_bounce_selections);
DECLARE_SIMPLE (activate_set_curve_algorithm);
DECLARE_SIMPLE (
activate_set_region_fade_in_algorithm_preset);
DECLARE_SIMPLE (
activate_set_region_fade_out_algorithm_preset);
DECLARE_SIMPLE (activate_set_region_fade_in_algorithm_preset);
DECLARE_SIMPLE (activate_set_region_fade_out_algorithm_preset);
DECLARE_SIMPLE (activate_arranger_object_view_info);
/* chord presets */
DECLARE_SIMPLE (activate_save_chord_preset);
DECLARE_SIMPLE (activate_load_chord_preset);
DECLARE_SIMPLE (
activate_load_chord_preset_from_scale);
DECLARE_SIMPLE (activate_load_chord_preset_from_scale);
DECLARE_SIMPLE (activate_transpose_chord_pad);
DECLARE_SIMPLE (activate_add_chord_preset_pack);
DECLARE_SIMPLE (activate_delete_chord_preset_pack);
@ -475,24 +461,18 @@ DECLARE_SIMPLE (activate_plugin_inspect); @@ -475,24 +461,18 @@ DECLARE_SIMPLE (activate_plugin_inspect);
DECLARE_SIMPLE (activate_mixer_selections_delete);
/* panel file browser actions */
DECLARE_SIMPLE (
activate_panel_file_browser_add_bookmark);
DECLARE_SIMPLE (
activate_panel_file_browser_delete_bookmark);
DECLARE_SIMPLE (activate_panel_file_browser_add_bookmark);
DECLARE_SIMPLE (activate_panel_file_browser_delete_bookmark);
/* plugin browser actions */
DECLARE_SIMPLE (
activate_plugin_browser_add_to_project);
DECLARE_SIMPLE (
activate_plugin_browser_add_to_project_carla);
DECLARE_SIMPLE (activate_plugin_browser_add_to_project);
DECLARE_SIMPLE (activate_plugin_browser_add_to_project_carla);
DECLARE_SIMPLE (
activate_plugin_browser_add_to_project_bridged_ui);
DECLARE_SIMPLE (
activate_plugin_browser_add_to_project_bridged_full);
DECLARE_SIMPLE (
change_state_plugin_browser_toggle_generic_ui);
DECLARE_SIMPLE (
activate_plugin_browser_add_to_collection);
DECLARE_SIMPLE (change_state_plugin_browser_toggle_generic_ui);
DECLARE_SIMPLE (activate_plugin_browser_add_to_collection);
DECLARE_SIMPLE (
activate_plugin_browser_remove_from_collection);
DECLARE_SIMPLE (activate_plugin_browser_reset);

193
inc/actions/arranger_selections.h

@ -101,22 +101,18 @@ typedef enum ArrangerSelectionsActionResizeType @@ -101,22 +101,18 @@ typedef enum ArrangerSelectionsActionResizeType
static const cyaml_strval_t
arranger_selections_action_resize_type_strings[] = {
{"Resize L",
ARRANGER_SELECTIONS_ACTION_RESIZE_L },
{ "Resize R",
ARRANGER_SELECTIONS_ACTION_RESIZE_R },
{"Resize L", ARRANGER_SELECTIONS_ACTION_RESIZE_L },
{ "Resize R", ARRANGER_SELECTIONS_ACTION_RESIZE_R },
{ "Resize L (loop)",
ARRANGER_SELECTIONS_ACTION_RESIZE_L_LOOP},
ARRANGER_SELECTIONS_ACTION_RESIZE_L_LOOP },
{ "Resize R (loop)",
ARRANGER_SELECTIONS_ACTION_RESIZE_R_LOOP},
ARRANGER_SELECTIONS_ACTION_RESIZE_R_LOOP },
{ "Resize L (fade)",
ARRANGER_SELECTIONS_ACTION_RESIZE_L_FADE},
ARRANGER_SELECTIONS_ACTION_RESIZE_L_FADE },
{ "Resize R (fade)",
ARRANGER_SELECTIONS_ACTION_RESIZE_R_FADE},
{ "Stretch L",
ARRANGER_SELECTIONS_ACTION_STRETCH_L },
{ "Stretch R",
ARRANGER_SELECTIONS_ACTION_STRETCH_R },
ARRANGER_SELECTIONS_ACTION_RESIZE_R_FADE },
{ "Stretch L", ARRANGER_SELECTIONS_ACTION_STRETCH_L},
{ "Stretch R", ARRANGER_SELECTIONS_ACTION_STRETCH_R},
};
/**
@ -167,17 +163,14 @@ typedef enum ArrangerSelectionsActionEditType @@ -167,17 +163,14 @@ typedef enum ArrangerSelectionsActionEditType
static const cyaml_strval_t
arranger_selections_action_edit_type_strings[] = {
{"Name", ARRANGER_SELECTIONS_ACTION_EDIT_NAME},
{ "Pos", ARRANGER_SELECTIONS_ACTION_EDIT_POS },
{ "Primitive",
ARRANGER_SELECTIONS_ACTION_EDIT_PRIMITIVE },
{ "Scale",
ARRANGER_SELECTIONS_ACTION_EDIT_SCALE },
{ "Fades",
ARRANGER_SELECTIONS_ACTION_EDIT_FADES },
{ "Mute", ARRANGER_SELECTIONS_ACTION_EDIT_MUTE},
{"Name", ARRANGER_SELECTIONS_ACTION_EDIT_NAME },
{ "Pos", ARRANGER_SELECTIONS_ACTION_EDIT_POS },
{ "Primitive", ARRANGER_SELECTIONS_ACTION_EDIT_PRIMITIVE},
{ "Scale", ARRANGER_SELECTIONS_ACTION_EDIT_SCALE },
{ "Fades", ARRANGER_SELECTIONS_ACTION_EDIT_FADES },
{ "Mute", ARRANGER_SELECTIONS_ACTION_EDIT_MUTE },
{ "Editor function",
ARRANGER_SELECTIONS_ACTION_EDIT_EDITOR_FUNCTION },
ARRANGER_SELECTIONS_ACTION_EDIT_EDITOR_FUNCTION },
};
/**
@ -292,27 +285,15 @@ static const cyaml_schema_field_t arranger_selections_action_fields_schema[] = { @@ -292,27 +285,15 @@ static const cyaml_schema_field_t arranger_selections_action_fields_schema[] = {
resize_type,
arranger_selections_action_resize_type_strings),
YAML_FIELD_FLOAT (ArrangerSelectionsAction, ticks),
YAML_FIELD_INT (
ArrangerSelectionsAction,
delta_tracks),
YAML_FIELD_INT (
ArrangerSelectionsAction,
delta_lanes),
YAML_FIELD_INT (
ArrangerSelectionsAction,
delta_chords),
YAML_FIELD_INT (
ArrangerSelectionsAction,
delta_pitch),
YAML_FIELD_INT (
ArrangerSelectionsAction,
delta_vel),
YAML_FIELD_INT (ArrangerSelectionsAction, delta_tracks),
YAML_FIELD_INT (ArrangerSelectionsAction, delta_lanes),
YAML_FIELD_INT (ArrangerSelectionsAction, delta_chords),
YAML_FIELD_INT (ArrangerSelectionsAction, delta_pitch),
YAML_FIELD_INT (ArrangerSelectionsAction, delta_vel),
YAML_FIELD_FLOAT (
ArrangerSelectionsAction,
delta_normalized_amount),
YAML_FIELD_STRING_PTR_OPTIONAL (
ArrangerSelectionsAction,
str),
YAML_FIELD_STRING_PTR_OPTIONAL (ArrangerSelectionsAction, str),
YAML_FIELD_MAPPING_EMBEDDED (
ArrangerSelectionsAction,
pos,
@ -437,13 +418,11 @@ arranger_selections_action_new_create_or_delete ( @@ -437,13 +418,11 @@ arranger_selections_action_new_create_or_delete (
const bool create,
GError ** error);
#define arranger_selections_action_new_create( \
sel, error) \
#define arranger_selections_action_new_create(sel, error) \
arranger_selections_action_new_create_or_delete ( \
(ArrangerSelections *) sel, true, error)
#define arranger_selections_action_new_delete( \
sel, error) \
#define arranger_selections_action_new_delete(sel, error) \
arranger_selections_action_new_create_or_delete ( \
(ArrangerSelections *) sel, false, error)
@ -481,64 +460,60 @@ arranger_selections_action_new_move_or_duplicate ( @@ -481,64 +460,60 @@ arranger_selections_action_new_move_or_duplicate (
GError ** error);
#define arranger_selections_action_new_move( \
sel, ticks, chords, pitch, tracks, lanes, \
norm_amt, already_moved, error) \
sel, ticks, chords, pitch, tracks, lanes, norm_amt, \
already_moved, error) \
arranger_selections_action_new_move_or_duplicate ( \
(ArrangerSelections *) sel, 1, ticks, chords, \
pitch, tracks, lanes, norm_amt, \
already_moved, error)
(ArrangerSelections *) sel, 1, ticks, chords, pitch, \
tracks, lanes, norm_amt, already_moved, error)
#define arranger_selections_action_new_duplicate( \
sel, ticks, chords, pitch, tracks, lanes, \
norm_amt, already_moved, error) \
sel, ticks, chords, pitch, tracks, lanes, norm_amt, \
already_moved, error) \
arranger_selections_action_new_move_or_duplicate ( \
(ArrangerSelections *) sel, 0, ticks, chords, \
pitch, tracks, lanes, norm_amt, \
already_moved, error)
(ArrangerSelections *) sel, 0, ticks, chords, pitch, \
tracks, lanes, norm_amt, already_moved, error)
#define arranger_selections_action_new_move_timeline( \
sel, ticks, delta_tracks, delta_lanes, \
already_moved, error) \
sel, ticks, delta_tracks, delta_lanes, already_moved, \
error) \
arranger_selections_action_new_move ( \
sel, ticks, 0, 0, delta_tracks, delta_lanes, \
0, already_moved, error)
sel, ticks, 0, 0, delta_tracks, delta_lanes, 0, \
already_moved, error)
#define arranger_selections_action_new_duplicate_timeline( \
sel, ticks, delta_tracks, delta_lanes, \
already_moved, error) \
sel, ticks, delta_tracks, delta_lanes, already_moved, \
error) \
arranger_selections_action_new_duplicate ( \
sel, ticks, 0, 0, delta_tracks, delta_lanes, \
0, already_moved, error)
sel, ticks, 0, 0, delta_tracks, delta_lanes, 0, \
already_moved, error)
#define arranger_selections_action_new_move_midi( \
sel, ticks, delta_pitch, already_moved, error) \
arranger_selections_action_new_move ( \
sel, ticks, 0, delta_pitch, 0, 0, 0, \
already_moved, error)
sel, ticks, 0, delta_pitch, 0, 0, 0, already_moved, \
error)
#define arranger_selections_action_new_duplicate_midi( \
sel, ticks, delta_pitch, already_moved, error) \
arranger_selections_action_new_duplicate ( \
sel, ticks, 0, delta_pitch, 0, 0, 0, \
already_moved, error)
sel, ticks, 0, delta_pitch, 0, 0, 0, already_moved, \
error)
#define arranger_selections_action_new_move_chord( \
sel, ticks, delta_chords, already_moved, error) \
arranger_selections_action_new_move ( \
sel, ticks, delta_chords, 0, 0, 0, 0, \
already_moved, error)
sel, ticks, delta_chords, 0, 0, 0, 0, already_moved, \
error)
#define arranger_selections_action_new_duplicate_chord( \
sel, ticks, delta_chords, already_moved, error) \
arranger_selections_action_new_duplicate ( \
sel, ticks, delta_chords, 0, 0, 0, 0, \
already_moved, error)
sel, ticks, delta_chords, 0, 0, 0, 0, already_moved, \
error)
#define arranger_selections_action_new_move_automation( \
sel, ticks, norm_amt, already_moved, error) \
arranger_selections_action_new_move ( \
sel, ticks, 0, 0, 0, 0, norm_amt, \
already_moved, error)
sel, ticks, 0, 0, 0, 0, norm_amt, already_moved, error)
#define arranger_selections_action_new_duplicate_automation( \
sel, ticks, norm_amt, already_moved, error) \
arranger_selections_action_new_duplicate ( \
sel, ticks, 0, 0, 0, 0, norm_amt, \
already_moved, error)
sel, ticks, 0, 0, 0, 0, norm_amt, already_moved, error)
/**
* Creates a new action for linking regions.
@ -678,8 +653,8 @@ arranger_selections_action_new_resize ( @@ -678,8 +653,8 @@ arranger_selections_action_new_resize (
ArrangerSelections * sel,
ArrangerSelectionsActionResizeType type,
const double ticks,
const bool already_resized,
GError ** error);
const bool already_resized,
GError ** error);
/**
* Creates a new action for quantizing
@ -705,13 +680,11 @@ arranger_selections_action_perform_create_or_delete ( @@ -705,13 +680,11 @@ arranger_selections_action_perform_create_or_delete (
const bool create,
GError ** error);
#define arranger_selections_action_perform_create( \
sel, error) \
#define arranger_selections_action_perform_create(sel, error) \
arranger_selections_action_perform_create_or_delete ( \
(ArrangerSelections *) sel, true, error)
#define arranger_selections_action_perform_delete( \
sel, error) \
#define arranger_selections_action_perform_delete(sel, error) \
arranger_selections_action_perform_create_or_delete ( \
(ArrangerSelections *) sel, false, error)
@ -736,64 +709,60 @@ arranger_selections_action_perform_move_or_duplicate ( @@ -736,64 +709,60 @@ arranger_selections_action_perform_move_or_duplicate (
GError ** error);
#define arranger_selections_action_perform_move( \
sel, ticks, chords, pitch, tracks, lanes, \
norm_amt, already_moved, error) \
sel, ticks, chords, pitch, tracks, lanes, norm_amt, \
already_moved, error) \
arranger_selections_action_perform_move_or_duplicate ( \
(ArrangerSelections *) sel, 1, ticks, chords, \
pitch, tracks, lanes, norm_amt, \
already_moved, error)
(ArrangerSelections *) sel, 1, ticks, chords, pitch, \
tracks, lanes, norm_amt, already_moved, error)
#define arranger_selections_action_perform_duplicate( \
sel, ticks, chords, pitch, tracks, lanes, \
norm_amt, already_moved, error) \
sel, ticks, chords, pitch, tracks, lanes, norm_amt, \
already_moved, error) \
arranger_selections_action_perform_move_or_duplicate ( \
(ArrangerSelections *) sel, 0, ticks, chords, \
pitch, tracks, lanes, norm_amt, \
already_moved, error)
(ArrangerSelections *) sel, 0, ticks, chords, pitch, \
tracks, lanes, norm_amt, already_moved, error)
#define arranger_selections_action_perform_move_timeline( \
sel, ticks, delta_tracks, delta_lanes, \
already_moved, error) \
sel, ticks, delta_tracks, delta_lanes, already_moved, \
error) \
arranger_selections_action_perform_move ( \
sel, ticks, 0, 0, delta_tracks, delta_lanes, \
0, already_moved, error)
sel, ticks, 0, 0, delta_tracks, delta_lanes, 0, \
already_moved, error)
#define arranger_selections_action_perform_duplicate_timeline( \
sel, ticks, delta_tracks, delta_lanes, \
already_moved, error) \
sel, ticks, delta_tracks, delta_lanes, already_moved, \
error) \
arranger_selections_action_perform_duplicate ( \
sel, ticks, 0, 0, delta_tracks, delta_lanes, \
0, already_moved, error)
sel, ticks, 0, 0, delta_tracks, delta_lanes, 0, \
already_moved, error)
#define arranger_selections_action_perform_move_midi( \
sel, ticks, delta_pitch, already_moved, error) \
arranger_selections_action_perform_move ( \
sel, ticks, 0, delta_pitch, 0, 0, 0, \
already_moved, error)
sel, ticks, 0, delta_pitch, 0, 0, 0, already_moved, \
error)
#define arranger_selections_action_perform_duplicate_midi( \
sel, ticks, delta_pitch, already_moved, error) \
arranger_selections_action_perform_duplicate ( \
sel, ticks, 0, delta_pitch, 0, 0, 0, \
already_moved, error)
sel, ticks, 0, delta_pitch, 0, 0, 0, already_moved, \
error)
#define arranger_selections_action_perform_move_chord( \
sel, ticks, delta_chords, already_moved, error) \
arranger_selections_action_perform_move ( \
sel, ticks, delta_chords, 0, 0, 0, 0, \
already_moved, error)
sel, ticks, delta_chords, 0, 0, 0, 0, already_moved, \
error)
#define arranger_selections_action_perform_duplicate_chord( \
sel, ticks, delta_chords, already_moved, error) \
arranger_selections_action_perform_duplicate ( \
sel, ticks, delta_chords, 0, 0, 0, 0, \
already_moved, error)
sel, ticks, delta_chords, 0, 0, 0, 0, already_moved, \
error)
#define arranger_selections_action_perform_move_automation( \
sel, ticks, norm_amt, already_moved, error) \
arranger_selections_action_perform_move ( \
sel, ticks, 0, 0, 0, 0, norm_amt, \
already_moved, error)
sel, ticks, 0, 0, 0, 0, norm_amt, already_moved, error)
#define arranger_selections_action_perform_duplicate_automation( \
sel, ticks, norm_amt, already_moved, error) \
arranger_selections_action_perform_duplicate ( \
sel, ticks, 0, 0, 0, 0, norm_amt, \
already_moved, error)
sel, ticks, 0, 0, 0, 0, norm_amt, already_moved, error)
bool
arranger_selections_action_perform_link (
@ -863,8 +832,8 @@ arranger_selections_action_perform_resize ( @@ -863,8 +832,8 @@ arranger_selections_action_perform_resize (
ArrangerSelections * sel,
ArrangerSelectionsActionResizeType type,
const double ticks,
const bool already_resized,
GError ** error);
const bool already_resized,
GError ** error);
bool
arranger_selections_action_perform_quantize (

144
inc/actions/channel_send_action.h

@ -40,19 +40,14 @@ typedef enum ChannelSendActionType @@ -40,19 +40,14 @@ typedef enum ChannelSendActionType
CHANNEL_SEND_ACTION_DISCONNECT,
} ChannelSendActionType;
static const cyaml_strval_t
channel_send_action_type_strings[] = {
{"Connect stereo",
CHANNEL_SEND_ACTION_CONNECT_STEREO },
{ "Connect MIDI",
CHANNEL_SEND_ACTION_CONNECT_MIDI },
{ "Connect sidechain",
CHANNEL_SEND_ACTION_CONNECT_SIDECHAIN },
{ "Change amount",
CHANNEL_SEND_ACTION_CHANGE_AMOUNT },
{ "Change ports",
CHANNEL_SEND_ACTION_CHANGE_PORTS },
{ "Disconnect", CHANNEL_SEND_ACTION_DISCONNECT},
static const cyaml_strval_t channel_send_action_type_strings[] = {
{"Connect stereo", CHANNEL_SEND_ACTION_CONNECT_STEREO},
{ "Connect MIDI", CHANNEL_SEND_ACTION_CONNECT_MIDI },
{ "Connect sidechain",
CHANNEL_SEND_ACTION_CONNECT_SIDECHAIN },
{ "Change amount", CHANNEL_SEND_ACTION_CHANGE_AMOUNT },
{ "Change ports", CHANNEL_SEND_ACTION_CHANGE_PORTS },
{ "Disconnect", CHANNEL_SEND_ACTION_DISCONNECT },
};
/**
@ -84,43 +79,40 @@ typedef struct ChannelSendAction @@ -84,43 +79,40 @@ typedef struct ChannelSendAction
} ChannelSendAction;
static const cyaml_schema_field_t
channel_send_action_fields_schema[] = {
YAML_FIELD_MAPPING_EMBEDDED (
ChannelSendAction,
parent_instance,
undoable_action_fields_schema),
YAML_FIELD_ENUM (
ChannelSendAction,
type,
channel_send_action_type_strings),
YAML_FIELD_MAPPING_PTR (
ChannelSendAction,
send_before,
channel_send_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
ChannelSendAction,
connections_mgr_before,
port_connections_manager_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
ChannelSendAction,
connections_mgr_after,
port_connections_manager_fields_schema),
CYAML_FIELD_END
};
static const cyaml_schema_value_t
channel_send_action_schema = {
CYAML_VALUE_MAPPING (
CYAML_FLAG_POINTER,
ChannelSendAction,
channel_send_action_fields_schema),
};
static const cyaml_schema_field_t channel_send_action_fields_schema[] = {
YAML_FIELD_MAPPING_EMBEDDED (
ChannelSendAction,
parent_instance,
undoable_action_fields_schema),
YAML_FIELD_ENUM (
ChannelSendAction,
type,
channel_send_action_type_strings),
YAML_FIELD_MAPPING_PTR (
ChannelSendAction,
send_before,
channel_send_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
ChannelSendAction,
connections_mgr_before,
port_connections_manager_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
ChannelSendAction,
connections_mgr_after,
port_connections_manager_fields_schema),
CYAML_FIELD_END
};
static const cyaml_schema_value_t channel_send_action_schema = {
CYAML_VALUE_MAPPING (
CYAML_FLAG_POINTER,
ChannelSendAction,
channel_send_action_fields_schema),
};
void
channel_send_action_init_loaded (
ChannelSendAction * self);
channel_send_action_init_loaded (ChannelSendAction * self);
/**
* Creates a new action.
@ -141,42 +133,38 @@ channel_send_action_new ( @@ -141,42 +133,38 @@ channel_send_action_new (
const PortConnectionsManager * port_connections_mgr,
GError ** error);
#define channel_send_action_new_disconnect( \
send, error) \
#define channel_send_action_new_disconnect(send, error) \
channel_send_action_new ( \
send, CHANNEL_SEND_ACTION_DISCONNECT, NULL, \
NULL, 0.f, PORT_CONNECTIONS_MGR, error)
send, CHANNEL_SEND_ACTION_DISCONNECT, NULL, NULL, 0.f, \
PORT_CONNECTIONS_MGR, error)
#define channel_send_action_new_connect_midi( \
send, midi, error) \
channel_send_action_new ( \
send, CHANNEL_SEND_ACTION_CONNECT_MIDI, midi, \
NULL, 0.f, PORT_CONNECTIONS_MGR, error)
send, CHANNEL_SEND_ACTION_CONNECT_MIDI, midi, NULL, 0.f, \
PORT_CONNECTIONS_MGR, error)
#define channel_send_action_new_connect_audio( \
send, stereo, error) \
channel_send_action_new ( \
send, CHANNEL_SEND_ACTION_CONNECT_STEREO, \
NULL, stereo, 0.f, PORT_CONNECTIONS_MGR, \
error)
send, CHANNEL_SEND_ACTION_CONNECT_STEREO, NULL, stereo, \
0.f, PORT_CONNECTIONS_MGR, error)
#define channel_send_action_new_connect_sidechain( \
send, stereo, error) \
channel_send_action_new ( \
send, CHANNEL_SEND_ACTION_CONNECT_SIDECHAIN, \
NULL, stereo, 0.f, PORT_CONNECTIONS_MGR, \
error)
send, CHANNEL_SEND_ACTION_CONNECT_SIDECHAIN, NULL, \
stereo, 0.f, PORT_CONNECTIONS_MGR, error)
#define channel_send_action_new_change_amount( \
send, amt, error) \
channel_send_action_new ( \
send, CHANNEL_SEND_ACTION_CHANGE_AMOUNT, \
NULL, NULL, amt, NULL, error)
send, CHANNEL_SEND_ACTION_CHANGE_AMOUNT, NULL, NULL, \
amt, NULL, error)
NONNULL
ChannelSendAction *
channel_send_action_clone (
const ChannelSendAction * src);
channel_send_action_clone (const ChannelSendAction * src);
/**
* Wrapper to create action and perform it.
@ -194,37 +182,34 @@ channel_send_action_perform ( @@ -194,37 +182,34 @@ channel_send_action_perform (
const PortConnectionsManager * port_connections_mgr,
GError ** error);
#define channel_send_action_perform_disconnect( \
send, error) \
#define channel_send_action_perform_disconnect(send, error) \
channel_send_action_perform ( \
send, CHANNEL_SEND_ACTION_DISCONNECT, NULL, \
NULL, 0.f, PORT_CONNECTIONS_MGR, error)
send, CHANNEL_SEND_ACTION_DISCONNECT, NULL, NULL, 0.f, \
PORT_CONNECTIONS_MGR, error)
#define channel_send_action_perform_connect_midi( \
send, midi, error) \
channel_send_action_perform ( \
send, CHANNEL_SEND_ACTION_CONNECT_MIDI, midi, \
NULL, 0.f, PORT_CONNECTIONS_MGR, error)
send, CHANNEL_SEND_ACTION_CONNECT_MIDI, midi, NULL, 0.f, \
PORT_CONNECTIONS_MGR, error)
#define channel_send_action_perform_connect_audio( \
send, stereo, error) \
channel_send_action_perform ( \
send, CHANNEL_SEND_ACTION_CONNECT_STEREO, \
NULL, stereo, 0.f, PORT_CONNECTIONS_MGR, \
error)
send, CHANNEL_SEND_ACTION_CONNECT_STEREO, NULL, stereo, \
0.f, PORT_CONNECTIONS_MGR, error)
#define channel_send_action_perform_connect_sidechain( \
send, stereo, error) \
channel_send_action_perform ( \
send, CHANNEL_SEND_ACTION_CONNECT_SIDECHAIN, \
NULL, stereo, 0.f, PORT_CONNECTIONS_MGR, \
error)
send, CHANNEL_SEND_ACTION_CONNECT_SIDECHAIN, NULL, \
stereo, 0.f, PORT_CONNECTIONS_MGR, error)
#define channel_send_action_perform_change_amount( \
send, amt, error) \
channel_send_action_perform ( \
send, CHANNEL_SEND_ACTION_CHANGE_AMOUNT, \
NULL, NULL, amt, NULL, error)
send, CHANNEL_SEND_ACTION_CHANGE_AMOUNT, NULL, NULL, \
amt, NULL, error)
int
channel_send_action_do (
@ -237,8 +222,7 @@ channel_send_action_undo ( @@ -237,8 +222,7 @@ channel_send_action_undo (
GError ** error);
char *
channel_send_action_stringize (
ChannelSendAction * self);
channel_send_action_stringize (ChannelSendAction * self);
void
channel_send_action_free (ChannelSendAction * self);

90
inc/actions/chord_action.h

@ -44,10 +44,9 @@ typedef enum ChordActionType @@ -44,10 +44,9 @@ typedef enum ChordActionType
CHORD_ACTION_ALL,
} ChordActionType;
static const cyaml_strval_t
chord_action_type_strings[] = {
{"Single", CHORD_ACTION_SINGLE},
{ "All", CHORD_ACTION_ALL },
static const cyaml_strval_t chord_action_type_strings[] = {
{"Single", CHORD_ACTION_SINGLE},
{ "All", CHORD_ACTION_ALL },
};
/**
@ -71,46 +70,41 @@ typedef struct ChordAction @@ -71,46 +70,41 @@ typedef struct ChordAction
} ChordAction;
static const cyaml_schema_field_t
chord_action_fields_schema[] = {
YAML_FIELD_MAPPING_EMBEDDED (
ChordAction,
parent_instance,
undoable_action_fields_schema),
YAML_FIELD_ENUM (
ChordAction,
type,
chord_action_type_strings),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
ChordAction,
chord_before,
chord_descriptor_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
ChordAction,
chord_after,
chord_descriptor_fields_schema),
YAML_FIELD_INT (ChordAction, chord_idx),
YAML_FIELD_DYN_FIXED_SIZE_PTR_ARRAY_OPT (
ChordAction,
chords_before,
chord_descriptor_schema,
CHORD_EDITOR_NUM_CHORDS),
YAML_FIELD_DYN_FIXED_SIZE_PTR_ARRAY_OPT (
ChordAction,
chords_after,
chord_descriptor_schema,
CHORD_EDITOR_NUM_CHORDS),
CYAML_FIELD_END
};
static const cyaml_schema_value_t
chord_action_schema = {
CYAML_VALUE_MAPPING (
CYAML_FLAG_POINTER,
ChordAction,
chord_action_fields_schema),
};
static const cyaml_schema_field_t chord_action_fields_schema[] = {
YAML_FIELD_MAPPING_EMBEDDED (
ChordAction,
parent_instance,
undoable_action_fields_schema),
YAML_FIELD_ENUM (ChordAction, type, chord_action_type_strings),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
ChordAction,
chord_before,
chord_descriptor_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
ChordAction,
chord_after,
chord_descriptor_fields_schema),
YAML_FIELD_INT (ChordAction, chord_idx),
YAML_FIELD_DYN_FIXED_SIZE_PTR_ARRAY_OPT (
ChordAction,
chords_before,
chord_descriptor_schema,
CHORD_EDITOR_NUM_CHORDS),
YAML_FIELD_DYN_FIXED_SIZE_PTR_ARRAY_OPT (
ChordAction,
chords_after,
chord_descriptor_schema,
CHORD_EDITOR_NUM_CHORDS),
CYAML_FIELD_END
};
static const cyaml_schema_value_t chord_action_schema = {
CYAML_VALUE_MAPPING (
CYAML_FLAG_POINTER,
ChordAction,
chord_action_fields_schema),
};
void
chord_action_init_loaded (ChordAction * self);
@ -147,14 +141,10 @@ chord_action_perform ( @@ -147,14 +141,10 @@ chord_action_perform (
GError ** error);
int
chord_action_do (
ChordAction * self,
GError ** error);
chord_action_do (ChordAction * self, GError ** error);
int
chord_action_undo (
ChordAction * self,
GError ** error);
chord_action_undo (ChordAction * self, GError ** error);
char *
chord_action_stringize (ChordAction * self);

41
inc/actions/midi_mapping_action.h

@ -40,12 +40,11 @@ typedef enum MidiMappingActionType @@ -40,12 +40,11 @@ typedef enum MidiMappingActionType
MIDI_MAPPING_ACTION_DISABLE,
} MidiMappingActionType;
static const cyaml_strval_t
midi_mapping_action_type_strings[] = {
{"Bind", MIDI_MAPPING_ACTION_BIND },
{ "Unbind", MIDI_MAPPING_ACTION_UNBIND },
{ "Enable", MIDI_MAPPING_ACTION_ENABLE },
{ "Disable", MIDI_MAPPING_ACTION_DISABLE},
static const cyaml_strval_t midi_mapping_action_type_strings[] = {
{"Bind", MIDI_MAPPING_ACTION_BIND },
{ "Unbind", MIDI_MAPPING_ACTION_UNBIND },
{ "Enable", MIDI_MAPPING_ACTION_ENABLE },
{ "Disable", MIDI_MAPPING_ACTION_DISABLE},
};
/**
@ -93,17 +92,15 @@ static const cyaml_schema_field_t @@ -93,17 +92,15 @@ static const cyaml_schema_field_t
CYAML_FIELD_END
};
static const cyaml_schema_value_t
midi_mapping_action_schema = {
CYAML_VALUE_MAPPING (
CYAML_FLAG_POINTER,
MidiMappingAction,
midi_mapping_action_fields_schema),
};
static const cyaml_schema_value_t midi_mapping_action_schema = {
CYAML_VALUE_MAPPING (
CYAML_FLAG_POINTER,
MidiMappingAction,
midi_mapping_action_fields_schema),
};
void
midi_mapping_action_init_loaded (
MidiMappingAction * self);
midi_mapping_action_init_loaded (MidiMappingAction * self);
/**
* Creates a new action.
@ -131,14 +128,11 @@ midi_mapping_action_new_bind ( @@ -131,14 +128,11 @@ midi_mapping_action_new_bind (
*/
WARN_UNUSED_RESULT
UndoableAction *
midi_mapping_action_new_unbind (
int idx,
GError ** error);
midi_mapping_action_new_unbind (int idx, GError ** error);
NONNULL
MidiMappingAction *
midi_mapping_action_clone (
const MidiMappingAction * src);
midi_mapping_action_clone (const MidiMappingAction * src);
/**
* Wrapper of midi_mapping_action_new_enable().
@ -163,9 +157,7 @@ midi_mapping_action_perform_bind ( @@ -163,9 +157,7 @@ midi_mapping_action_perform_bind (
* Wrapper of midi_mapping_action_new_unbind().
*/
bool
midi_mapping_action_perform_unbind (
int idx,
GError ** error);
midi_mapping_action_perform_unbind (int idx, GError ** error);
int
midi_mapping_action_do (
@ -178,8 +170,7 @@ midi_mapping_action_undo ( @@ -178,8 +170,7 @@ midi_mapping_action_undo (
GError ** error);
char *
midi_mapping_action_stringize (
MidiMappingAction * self);
midi_mapping_action_stringize (MidiMappingAction * self);
void
midi_mapping_action_free (MidiMappingAction * self);

196
inc/actions/mixer_selections_action.h

@ -128,61 +128,54 @@ typedef struct MixerSelectionsAction @@ -128,61 +128,54 @@ typedef struct MixerSelectionsAction
PortConnectionsManager * connections_mgr_after;
} MixerSelectionsAction;
static const cyaml_schema_field_t
mixer_selections_action_fields_schema[] = {
YAML_FIELD_MAPPING_EMBEDDED (
MixerSelectionsAction,
parent_instance,
undoable_action_fields_schema),
YAML_FIELD_ENUM (
MixerSelectionsAction,
type,
mixer_selections_action_type_strings),
YAML_FIELD_ENUM (
MixerSelectionsAction,
slot_type,
plugin_slot_type_strings),
YAML_FIELD_INT (MixerSelectionsAction, to_slot),
YAML_FIELD_UINT (
MixerSelectionsAction,
to_track_name_hash),
YAML_FIELD_INT (
MixerSelectionsAction,
new_channel),
YAML_FIELD_INT (
MixerSelectionsAction,
num_plugins),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
MixerSelectionsAction,
setting,
plugin_setting_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
MixerSelectionsAction,
ms_before,
mixer_selections_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
MixerSelectionsAction,
deleted_ms,
mixer_selections_fields_schema),
YAML_FIELD_FIXED_SIZE_PTR_ARRAY_VAR_COUNT (
MixerSelectionsAction,
ats,
automation_track_schema),
YAML_FIELD_FIXED_SIZE_PTR_ARRAY_VAR_COUNT (
MixerSelectionsAction,
deleted_ats,
automation_track_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
MixerSelectionsAction,
connections_mgr_before,
port_connections_manager_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
MixerSelectionsAction,
connections_mgr_after,
port_connections_manager_fields_schema),
CYAML_FIELD_END
};
static const cyaml_schema_field_t mixer_selections_action_fields_schema[] = {
YAML_FIELD_MAPPING_EMBEDDED (
MixerSelectionsAction,
parent_instance,
undoable_action_fields_schema),
YAML_FIELD_ENUM (
MixerSelectionsAction,
type,
mixer_selections_action_type_strings),
YAML_FIELD_ENUM (
MixerSelectionsAction,
slot_type,
plugin_slot_type_strings),
YAML_FIELD_INT (MixerSelectionsAction, to_slot),
YAML_FIELD_UINT (MixerSelectionsAction, to_track_name_hash),
YAML_FIELD_INT (MixerSelectionsAction, new_channel),
YAML_FIELD_INT (MixerSelectionsAction, num_plugins),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
MixerSelectionsAction,
setting,
plugin_setting_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
MixerSelectionsAction,
ms_before,
mixer_selections_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
MixerSelectionsAction,
deleted_ms,
mixer_selections_fields_schema),
YAML_FIELD_FIXED_SIZE_PTR_ARRAY_VAR_COUNT (
MixerSelectionsAction,
ats,
automation_track_schema),
YAML_FIELD_FIXED_SIZE_PTR_ARRAY_VAR_COUNT (
MixerSelectionsAction,
deleted_ats,
automation_track_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
MixerSelectionsAction,
connections_mgr_before,
port_connections_manager_fields_schema),
YAML_FIELD_MAPPING_PTR_OPTIONAL (
MixerSelectionsAction,
connections_mgr_after,
port_connections_manager_fields_schema),
CYAML_FIELD_END
};
static const cyaml_schema_value_t
mixer_selections_action_schema = {
@ -216,50 +209,41 @@ mixer_selections_action_new ( @@ -216,50 +209,41 @@ mixer_selections_action_new (
const PortConnectionsManager * connections_mgr,
MixerSelectionsActionType type,
PluginSlotType slot_type,
unsigned int to_track_name_hash,
int to_slot,
PluginSetting * setting,
int num_plugins,
GError ** error);
unsigned int to_track_name_hash,
int to_slot,
PluginSetting * setting,
int num_plugins,
GError ** error);
#define mixer_selections_action_new_create( \
slot_type, to_tr, to_slot, setting, \
num_plugins, error) \
slot_type, to_tr, to_slot, setting, num_plugins, error) \
mixer_selections_action_new ( \
NULL, NULL, MIXER_SELECTIONS_ACTION_CREATE, \
slot_type, to_tr, to_slot, setting, \
num_plugins, error)
NULL, NULL, MIXER_SELECTIONS_ACTION_CREATE, slot_type, \
to_tr, to_slot, setting, num_plugins, error)
#define mixer_selections_action_new_copy( \
ms, port_connections_mgr, slot_type, to_tr, \
to_slot, error) \
ms, port_connections_mgr, slot_type, to_tr, to_slot, error) \
mixer_selections_action_new ( \
ms, port_connections_mgr, \
MIXER_SELECTIONS_ACTION_COPY, slot_type, \
to_tr, to_slot, NULL, 0, error)
ms, port_connections_mgr, MIXER_SELECTIONS_ACTION_COPY, \
slot_type, to_tr, to_slot, NULL, 0, error)
#define mixer_selections_action_new_paste( \
ms, port_connections_mgr, slot_type, to_tr, \
to_slot, error) \
ms, port_connections_mgr, slot_type, to_tr, to_slot, error) \
mixer_selections_action_new ( \
ms, port_connections_mgr, \
MIXER_SELECTIONS_ACTION_PASTE, slot_type, \
to_tr, to_slot, NULL, 0, error)
ms, port_connections_mgr, MIXER_SELECTIONS_ACTION_PASTE, \
slot_type, to_tr, to_slot, NULL, 0, error)
#define mixer_selections_action_new_move( \
ms, port_connections_mgr, slot_type, to_tr, \
to_slot, error) \
ms, port_connections_mgr, slot_type, to_tr, to_slot, error) \
mixer_selections_action_new ( \
ms, port_connections_mgr, \
MIXER_SELECTIONS_ACTION_MOVE, slot_type, \
to_tr, to_slot, NULL, 0, error)
ms, port_connections_mgr, MIXER_SELECTIONS_ACTION_MOVE, \
slot_type, to_tr, to_slot, NULL, 0, error)
#define mixer_selections_action_new_delete( \
ms, port_connections_mgr, error) \
mixer_selections_action_new ( \
ms, port_connections_mgr, \
MIXER_SELECTIONS_ACTION_DELETE, 0, 0, 0, \
NULL, 0, error)
MIXER_SELECTIONS_ACTION_DELETE, 0, 0, 0, NULL, 0, error)
NONNULL
MixerSelectionsAction *
@ -272,50 +256,41 @@ mixer_selections_action_perform ( @@ -272,50 +256,41 @@ mixer_selections_action_perform (
const PortConnectionsManager * connections_mgr,
MixerSelectionsActionType type,
PluginSlotType slot_type,
unsigned int to_track_name_hash,
int to_slot,
PluginSetting * setting,
int num_plugins,
GError ** error);
unsigned int to_track_name_hash,
int to_slot,
PluginSetting * setting,
int num_plugins,
GError ** error);
#define mixer_selections_action_perform_create( \
slot_type, to_tr, to_slot, setting, \
num_plugins, error) \
slot_type, to_tr, to_slot, setting, num_plugins, error) \
mixer_selections_action_perform ( \
NULL, NULL, MIXER_SELECTIONS_ACTION_CREATE, \
slot_type, to_tr, to_slot, setting, \
num_plugins, error)
NULL, NULL, MIXER_SELECTIONS_ACTION_CREATE, slot_type, \
to_tr, to_slot, setting, num_plugins, error)
#define mixer_selections_action_perform_copy( \
ms, port_connections_mgr, slot_type, to_tr, \
to_slot, error) \
ms, port_connections_mgr, slot_type, to_tr, to_slot, error) \
mixer_selections_action_perform ( \
ms, port_connections_mgr, \
MIXER_SELECTIONS_ACTION_COPY, slot_type, \
to_tr, to_slot, NULL, 0, error)
ms, port_connections_mgr, MIXER_SELECTIONS_ACTION_COPY, \
slot_type, to_tr, to_slot, NULL, 0, error)
#define mixer_selections_action_perform_paste( \
ms, port_connections_mgr, slot_type, to_tr, \
to_slot, error) \
ms, port_connections_mgr, slot_type, to_tr, to_slot, error) \
mixer_selections_action_perform ( \
ms, port_connections_mgr, \
MIXER_SELECTIONS_ACTION_PASTE, slot_type, \
to_tr, to_slot, NULL, 0, error)
ms, port_connections_mgr, MIXER_SELECTIONS_ACTION_PASTE, \
slot_type, to_tr, to_slot, NULL, 0, error)
#define mixer_selections_action_perform_move( \
ms, port_connections_mgr, slot_type, to_tr, \
to_slot, error) \
ms, port_connections_mgr, slot_type, to_tr, to_slot, error) \
mixer_selections_action_perform ( \
ms, port_connections_mgr, \
MIXER_SELECTIONS_ACTION_MOVE, slot_type, \
to_tr, to_slot, NULL, 0, error)
ms, port_connections_mgr, MIXER_SELECTIONS_ACTION_MOVE, \
slot_type, to_tr, to_slot, NULL, 0, error)
#define mixer_selections_action_perform_delete( \
ms, port_connections_mgr, error) \
mixer_selections_action_perform ( \
ms, port_connections_mgr, \
MIXER_SELECTIONS_ACTION_DELETE, 0, 0, 0, \
NULL, 0, error)
MIXER_SELECTIONS_ACTION_DELETE, 0, 0, 0, NULL, 0, error)
int
mixer_selections_action_do (
@ -332,7 +307,6 @@ mixer_selections_action_stringize ( @@ -332,7 +307,6 @@ mixer_selections_action_stringize (
MixerSelectionsAction * self);
void
mixer_selections_action_free (
MixerSelectionsAction * self);
mixer_selections_action_free (MixerSelectionsAction * self);
#endif

46
inc/actions/port_action.h

@ -35,10 +35,8 @@ typedef enum PortActionType @@ -35,10 +35,8 @@ typedef enum PortActionType
PORT_ACTION_SET_CONTROL_VAL,
} PortActionType;
static const cyaml_strval_t
port_action_type_strings[] = {
{"Set control val",
PORT_ACTION_SET_CONTROL_VAL},
static const cyaml_strval_t port_action_type_strings[] = {
{"Set control val", PORT_ACTION_SET_CONTROL_VAL},
};
typedef struct PortAction
@ -58,29 +56,23 @@ typedef struct PortAction @@ -58,29 +56,23 @@ typedef struct PortAction
float val;
} PortAction;
static const cyaml_schema_field_t
port_action_fields_schema[] = {
YAML_FIELD_MAPPING_EMBEDDED (
PortAction,
parent_instance,
undoable_action_fields_schema),
YAML_FIELD_ENUM (
PortAction,
type,
port_action_type_strings),
YAML_FIELD_MAPPING_EMBEDDED (
PortAction,
port_id,
port_identifier_fields_schema),
YAML_FIELD_FLOAT (PortAction, val),
CYAML_FIELD_END
};
static const cyaml_schema_field_t port_action_fields_schema[] = {
YAML_FIELD_MAPPING_EMBEDDED (
PortAction,
parent_instance,
undoable_action_fields_schema),
YAML_FIELD_ENUM (PortAction, type, port_action_type_strings),
YAML_FIELD_MAPPING_EMBEDDED (
PortAction,
port_id,
port_identifier_fields_schema),
YAML_FIELD_FLOAT (PortAction, val),
CYAML_FIELD_END
};
static const cyaml_schema_value_t port_action_schema = {
YAML_VALUE_PTR (
PortAction,
port_action_fields_schema),
YAML_VALUE_PTR (PortAction, port_action_fields_schema),
};
void
@ -128,9 +120,7 @@ int @@ -128,9 +120,7 @@ int
port_action_do (PortAction * self, GError ** error);
int
port_action_undo (
PortAction * self,
GError ** error);
port_action_undo (PortAction * self, GError ** error);
char *
port_action_stringize (PortAction * self);

56
inc/actions/port_connection_action.h

@ -40,12 +40,11 @@ typedef enum PortConnectionActionType @@ -40,12 +40,11 @@ typedef enum PortConnectionActionType
static const cyaml_strval_t
port_connection_action_type_strings[] = {
{"connect", PORT_CONNECTION_CONNECT},
{ "disconnect", PORT_CONNECTION_CONNECT},
{ "enable", PORT_CONNECTION_ENABLE },
{ "disable", PORT_CONNECTION_DISABLE},
{ "change multiplier",
PORT_CONNECTION_CHANGE_MULTIPLIER },
{"connect", PORT_CONNECTION_CONNECT },
{ "disconnect", PORT_CONNECTION_CONNECT },
{ "enable", PORT_CONNECTION_ENABLE },
{ "disable", PORT_CONNECTION_DISABLE },
{ "change multiplier", PORT_CONNECTION_CHANGE_MULTIPLIER},
};
typedef struct PortConnectionAction
@ -83,12 +82,11 @@ static const cyaml_schema_field_t @@ -83,12 +82,11 @@ static const cyaml_schema_field_t
CYAML_FIELD_END
};
static const cyaml_schema_value_t
port_connection_action_schema = {
YAML_VALUE_PTR (
PortConnectionAction,
port_connection_action_fields_schema),
};
static const cyaml_schema_value_t port_connection_action_schema = {
YAML_VALUE_PTR (
PortConnectionAction,
port_connection_action_fields_schema),
};
void
port_connection_action_init_loaded (
@ -109,28 +107,24 @@ port_connection_action_new ( @@ -109,28 +107,24 @@ port_connection_action_new (
#define port_connection_action_new_connect( \
src_id, dest_id, error) \
port_connection_action_new ( \
PORT_CONNECTION_CONNECT, src_id, dest_id, \
0.f, error)
PORT_CONNECTION_CONNECT, src_id, dest_id, 0.f, error)
#define port_connection_action_new_disconnect( \
src_id, dest_id, error) \
port_connection_action_new ( \
PORT_CONNECTION_DISCONNECT, src_id, dest_id, \
0.f, error)
PORT_CONNECTION_DISCONNECT, src_id, dest_id, 0.f, error)
#define port_connection_action_new_enable( \
src_id, dest_id, enable, error) \
port_connection_action_new ( \
enable \
? PORT_CONNECTION_ENABLE \
: PORT_CONNECTION_DISABLE, \
enable ? PORT_CONNECTION_ENABLE : PORT_CONNECTION_DISABLE, \
src_id, dest_id, 0.f, error)
#define port_connection_action_new_change_multiplier( \
src_id, dest_id, new_multiplier, error) \
port_connection_action_new ( \
PORT_CONNECTION_CHANGE_MULTIPLIER, src_id, \
dest_id, new_multiplier, error)
PORT_CONNECTION_CHANGE_MULTIPLIER, src_id, dest_id, \
new_multiplier, error)
NONNULL
PortConnectionAction *
@ -148,28 +142,24 @@ port_connection_action_perform ( @@ -148,28 +142,24 @@ port_connection_action_perform (
#define port_connection_action_perform_connect( \
src_id, dest_id, error) \
port_connection_action_perform ( \
PORT_CONNECTION_CONNECT, src_id, dest_id, \
0.f, error)
PORT_CONNECTION_CONNECT, src_id, dest_id, 0.f, error)
#define port_connection_action_perform_disconnect( \
src_id, dest_id, error) \
port_connection_action_perform ( \
PORT_CONNECTION_DISCONNECT, src_id, dest_id, \
0.f, error)
PORT_CONNECTION_DISCONNECT, src_id, dest_id, 0.f, error)
#define port_connection_action_perform_enable( \
src_id, dest_id, enable, error) \
port_connection_action_perform ( \
enable \
? PORT_CONNECTION_ENABLE \
: PORT_CONNECTION_DISABLE, \
enable ? PORT_CONNECTION_ENABLE : PORT_CONNECTION_DISABLE, \
src_id, dest_id, 0.f, error)
#define port_connection_action_perform_change_multiplier( \
src_id, dest_id, new_multiplier, error) \
port_connection_action_perform ( \
PORT_CONNECTION_CHANGE_MULTIPLIER, src_id, \
dest_id, new_multiplier, error)
PORT_CONNECTION_CHANGE_MULTIPLIER, src_id, dest_id, \
new_multiplier, error)
int
port_connection_action_do (
@ -182,12 +172,10 @@ port_connection_action_undo ( @@ -182,12 +172,10 @@ port_connection_action_undo (
GError ** error);
char *
port_connection_action_stringize (
PortConnectionAction * self);
port_connection_action_stringize (PortConnectionAction * self);
void
port_connection_action_free (
PortConnectionAction * self);
port_connection_action_free (PortConnectionAction * self);
/**
* @}

109
inc/actions/range_action.h

@ -37,10 +37,9 @@ typedef enum RangeActionType @@ -37,10 +37,9 @@ typedef enum RangeActionType
RANGE_ACTION_REMOVE,
} RangeActionType;
static const cyaml_strval_t
range_action_type_strings[] = {
{"Insert silence", RANGE_ACTION_INSERT_SILENCE},
{ "Remove", RANGE_ACTION_REMOVE },
static const cyaml_strval_t range_action_type_strings[] = {
{"Insert silence", RANGE_ACTION_INSERT_SILENCE},
{ "Remove", RANGE_ACTION_REMOVE },
};
typedef struct RangeAction
@ -71,48 +70,43 @@ typedef struct RangeAction @@ -71,48 +70,43 @@ typedef struct RangeAction
} RangeAction;
static const cyaml_schema_field_t
range_action_fields_schema[] = {
YAML_FIELD_MAPPING_EMBEDDED (
RangeAction,
parent_instance,
undoable_action_fields_schema),
YAML_FIELD_MAPPING_EMBEDDED (
RangeAction,
start_pos,
position_fields_schema),
YAML_FIELD_MAPPING_EMBEDDED (
RangeAction,
end_pos,
position_fields_schema),
YAML_FIELD_ENUM (
RangeAction,
type,
range_action_type_strings),
YAML_FIELD_MAPPING_PTR (
RangeAction,
sel_before,
timeline_selections_fields_schema),
YAML_FIELD_MAPPING_PTR (
RangeAction,
sel_after,
timeline_selections_fields_schema),
YAML_FIELD_INT (RangeAction, first_run),
YAML_FIELD_MAPPING_PTR (
RangeAction,
transport,
transport_fields_schema),
CYAML_FIELD_END
};