1 diff -aur scgraph-0.13/server/control_loop.cc src/scgraph-0.13/server/control_loop.cc
2 --- scgraph-0.13/server/control_loop.cc 2008-07-05 23:52:16.000000000 +0200
3 +++ src/scgraph-0.13/server/control_loop.cc 2011-08-31 13:58:46.000000000 +0200
6 _freq (Options::get_instance()->_control_rate)
9 - ret = pthread_mutex_init (&_mutex, 0);
10 + pthread_mutex_init (&_mutex, 0);
16 Options *options = Options::get_instance ();
19 - ret = pthread_create (&_thread, 0, c_control_thread_func, this);
20 + pthread_create (&_thread, 0, c_control_thread_func, this);
22 if (options->_verbose >= 2)
23 std::cout << "[ControlLoop]: Running!" << std::endl;
26 void ControlLoop::stop ()
30 - ret = pthread_mutex_lock (&_mutex);
31 + pthread_mutex_lock (&_mutex);
33 - ret = pthread_mutex_unlock (&_mutex);
34 + pthread_mutex_unlock (&_mutex);
36 - ret = pthread_join (_thread, 0);
37 + pthread_join (_thread, 0);
41 void ControlLoop::set_rate (int rate)
43 - int ret = pthread_mutex_lock (&_mutex);
44 + pthread_mutex_lock (&_mutex);
46 - ret = pthread_mutex_unlock (&_mutex);
47 + pthread_mutex_unlock (&_mutex);
50 void *c_control_thread_func (void *arg)
51 diff -aur scgraph-0.13/server/jack_client.cc src/scgraph-0.13/server/jack_client.cc
52 --- scgraph-0.13/server/jack_client.cc 2008-07-05 23:52:16.000000000 +0200
53 +++ src/scgraph-0.13/server/jack_client.cc 2011-08-31 13:58:46.000000000 +0200
56 Options *options = Options::get_instance ();
58 + jack_status_t jack_status;
59 + jack_options_t jack_options = JackNullOption;
61 if (options->_verbose >= 1)
62 std::cout << "[JackClient]: Initializing " << num_of_ports << " ports" << std::endl;
64 if (num_of_ports == 0)
67 - _client = jack_client_new (_jack_name.c_str ());
68 + _client = jack_client_open (_jack_name.c_str (), jack_options, &jack_status);
70 throw ("[JackClient]: Error: couldn't register as jack client");
72 diff -aur scgraph-0.13/server/Makefile src/scgraph-0.13/server/Makefile
73 --- scgraph-0.13/server/Makefile 2009-01-22 12:03:14.000000000 +0100
74 +++ src/scgraph-0.13/server/Makefile 2011-08-31 13:58:46.000000000 +0200
76 COMPILE_FLAGS += -DSC_DARWIN
79 -#LINK_FLAGS = -lpthread $(ADDITIONAL_LINK_FLAGS) $(QT_LINK_FLAGS) -lm `pkg-config sndfile GraphicsMagick++ --cflags --libs`
80 -LINK_FLAGS = -lpthread $(ADDITIONAL_LINK_FLAGS) $(QT_LINK_FLAGS) -lm `pkg-config sndfile --cflags --static` /Users/fschmidt/local/opt/GraphicsMagick-1.3.1/lib/libGraphicsMagick++.a /Users/fschmidt/local/opt/GraphicsMagick-1.3.1/lib/libGraphicsMagick.a
81 +LINK_FLAGS = -lpthread $(ADDITIONAL_LINK_FLAGS) $(QT_LINK_FLAGS) -lm `pkg-config sndfile GraphicsMagick++ --cflags --libs`
82 +#LINK_FLAGS = -lpthread $(ADDITIONAL_LINK_FLAGS) $(QT_LINK_FLAGS) -lm `pkg-config sndfile --cflags --static` /usr/lib/libGraphicsMagick++.a /usr/lib/libGraphicsMagick.a
85 LINK_FLAGS += `pkg-config jack --libs fftw3f` -DHAVE_JACK
86 diff -aur scgraph-0.13/server/plugin_pool.cc src/scgraph-0.13/server/plugin_pool.cc
87 --- scgraph-0.13/server/plugin_pool.cc 2009-01-22 14:54:41.000000000 +0100
88 +++ src/scgraph-0.13/server/plugin_pool.cc 2011-08-31 13:59:52.000000000 +0200
93 +#ifndef _XOPEN_SOURCE
94 #define _XOPEN_SOURCE 600
99 diff -aur scgraph-0.13/server/plugins/gl_renderer.cc src/scgraph-0.13/server/plugins/gl_renderer.cc
100 --- scgraph-0.13/server/plugins/gl_renderer.cc 2008-12-10 17:41:49.000000000 +0100
101 +++ src/scgraph-0.13/server/plugins/gl_renderer.cc 2011-08-31 13:58:46.000000000 +0200
103 #include "../texture_pool.h"