13
0

OSC: Allow to specify marker name #8543

Patch from atsampson
This commit is contained in:
Robin Gareus 2021-01-18 23:36:35 +01:00
parent 983c577945
commit 8386874a03
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 6 additions and 0 deletions

View File

@ -435,6 +435,7 @@ OSC::register_callbacks()
REGISTER_CALLBACK (serv, X_("/surface/list"), "f", surface_list);
REGISTER_CALLBACK (serv, X_("/add_marker"), "", add_marker);
REGISTER_CALLBACK (serv, X_("/add_marker"), "f", add_marker);
REGISTER_CALLBACK (serv, X_("/add_marker"), "s", add_marker_name);
REGISTER_CALLBACK (serv, X_("/access_action"), "s", access_action);
REGISTER_CALLBACK (serv, X_("/loop_toggle"), "", loop_toggle);
REGISTER_CALLBACK (serv, X_("/loop_toggle"), "f", loop_toggle);

View File

@ -343,6 +343,10 @@ class OSC : public ARDOUR::ControlProtocol, public AbstractUI<OSCUIRequest>
void transport_speed (lo_message msg);
void record_enabled (lo_message msg);
void add_marker_name(const std::string &markername) {
add_marker(markername);
}
// cue
Sorted cue_get_sorted_stripables(boost::shared_ptr<ARDOUR::Stripable> aux, uint32_t id, lo_message msg);
int cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo_message msg);
@ -482,6 +486,7 @@ class OSC : public ARDOUR::ControlProtocol, public AbstractUI<OSCUIRequest>
}
PATH_CALLBACK1(set_transport_speed,f,);
PATH_CALLBACK1(add_marker_name,s,&);
PATH_CALLBACK1(access_action,s,&);
PATH_CALLBACK1(jump_by_bars,f,);