#define BUFFER_LEN (204800 * 6)
+pthread_mutex_t g_activate_mutex = PTHREAD_MUTEX_INITIALIZER;
+
/** This classes definition.
*/
self->ports = mlt_pool_alloc( sizeof(jack_port_t *) * channels );
// Start Jack processing - required before registering ports
+ pthread_mutex_lock( &g_activate_mutex );
jack_activate( self->jack );
+ pthread_mutex_unlock( &g_activate_mutex );
self->playing = 1;
// Register Jack ports
#include "jack_rack.h"
+extern pthread_mutex_t g_activate_mutex;
+
#define BUFFER_LEN 204800 * 6
static void jack_started_transmitter( mlt_listener listener, mlt_properties owner, mlt_service service, void **args )
sizeof( float *) * channels, mlt_pool_release, NULL );
// Start Jack processing - required before registering ports
+ pthread_mutex_lock( &g_activate_mutex );
jack_activate( jack_client );
+ pthread_mutex_unlock( &g_activate_mutex );
// Register Jack ports
for ( i = 0; i < channels; i++ )
#define _(x) x
#endif
+extern pthread_mutex_t g_activate_mutex;
+
#define USEC_PER_SEC 1000000
#define MSEC_PER_SEC 1000
#define TIME_RUN_SKIP_COUNT 5
buffer_size = jack_get_sample_rate (procinfo->jack_client);
jack_set_process_callback (procinfo->jack_client, process_jack, procinfo);
+ pthread_mutex_lock( &g_activate_mutex );
jack_on_shutdown (procinfo->jack_client, jack_shutdown_cb, procinfo);
+ pthread_mutex_unlock( &g_activate_mutex );
jack_activate (procinfo->jack_client);