OSC: allow setting of marker name
This commit is contained in:
parent
08632d623e
commit
a9d041c62e
@ -2932,13 +2932,24 @@ OSC::set_marker (const char* types, lo_arg **argv, int argc, lo_message msg)
|
|||||||
|
|
||||||
switch (types[0]) {
|
switch (types[0]) {
|
||||||
case 's':
|
case 's':
|
||||||
for (Locations::LocationList::const_iterator l = ll.begin(); l != ll.end(); ++l) {
|
{
|
||||||
if ((*l)->is_mark ()) {
|
Location *cur_mark = 0;
|
||||||
if (strcmp (&argv[0]->s, (*l)->name().c_str()) == 0) {
|
for (Locations::LocationList::const_iterator l = ll.begin(); l != ll.end(); ++l) {
|
||||||
session->request_locate ((*l)->start (), false);
|
if ((*l)->is_mark ()) {
|
||||||
return 0;
|
if (strcmp (&argv[0]->s, (*l)->name().c_str()) == 0) {
|
||||||
|
session->request_locate ((*l)->start (), false);
|
||||||
|
return 0;
|
||||||
|
} else if ((*l)->start () == session->transport_sample()) {
|
||||||
|
cur_mark = (*l);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (cur_mark) {
|
||||||
|
cur_mark->set_name (&argv[0]->s);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
PBD::warning << string_compose ("Marker: \"%1\" - does not exist", &argv[0]->s) << endmsg;
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
@ -2979,7 +2990,6 @@ OSC::group_list (lo_message msg)
|
|||||||
int
|
int
|
||||||
OSC::send_group_list (lo_address addr)
|
OSC::send_group_list (lo_address addr)
|
||||||
{
|
{
|
||||||
//std::list<RouteGroup*> const & route_groups () const {
|
|
||||||
lo_message reply;
|
lo_message reply;
|
||||||
reply = lo_message_new ();
|
reply = lo_message_new ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user