1
// ------------------------------------------------------------------------
2
// eca-osc.h: Class implementing the Ecasound OSC interface
3
// Copyright (C) 2009 Kai Vehmanen
6
// eca-style-version: 3
8
// This program is free software; you can redistribute it and/or modify
9
// it under the terms of the GNU General Public License as published by
10
// the Free Software Foundation; either version 2 of the License, or
11
// (at your option) any later version.
13
// This program is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
// GNU General Public License for more details.
18
// You should have received a copy of the GNU General Public License
19
// along with this program. If not, see <http://www.gnu.org/licenses/>.
20
// ------------------------------------------------------------------------
22
#ifndef INCLUDED_ECA_OSC_H
23
#define INCLUDED_ECA_OSC_H
32
* Ecasound Open Source Control Control (OSC) interface
34
* The interface is documented in Ecasound codebase:
35
* - ecasound/Documentation/ecasound_osc_interface.txt
36
* - http://ecasound.git.sourceforge.net/git/gitweb.cgi?p=ecasound;a=blob;f=Documentation/ecasound_osc_interface.txt;hb=HEAD
38
class ECA_OSC_INTERFACE {
40
friend int cb_lo_method_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data);
44
ECA_OSC_INTERFACE(ECA_CONTROL_MT *ecacontrol, int port = -1);
45
~ECA_OSC_INTERFACE(void);
49
bool is_running(void) const;
53
int parse_path_param(const std::string &path, int *param);
54
int handle_chain_message(const string &path, const char *types, lo_arg **argv, int argc);
55
int handle_osc_message(const char *path, const char *types, lo_arg **argv, int argc);
57
ECA_CONTROL_MT* ec_repp;
60
lo_server_thread lo_thr_repp;
61
lo_method method_all_repp;
64
#else /* !ECA_USE_LIBLO */
66
class ECA_OSC_INTERFACE;
68
#endif /* ECA_USE_LIBLO */
70
#endif /* INCLUDED_ECA_OSC_H */