daemon: jack graph proxy object

This commit is contained in:
Nedko Arnaudov 2009-09-03 05:45:39 +03:00
parent 053ce63196
commit e40bb25e13
2 changed files with 11 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include <expat.h>
#include "../jack_proxy.h"
#include "../graph_proxy.h"
#include "patchbay.h"
#include "../dbus_constants.h"
#include "control.h"
@ -78,6 +79,8 @@ struct studio
char * name;
char * filename;
graph_handle jack_graph;
} g_studio;
#define EVENT_JACK_START 0
@ -641,6 +644,11 @@ void on_event_jack_started(void)
lash_info("jack conf successfully retrieved");
g_studio.jack_conf_valid = true;
g_studio.jack_running = true;
if (!graph_create(JACKDBUS_SERVICE_NAME, JACKDBUS_OBJECT_PATH, &g_studio.jack_graph))
{
lash_error("graph_create() failed for jackdbus");
}
}
void on_event_jack_stopped(void)
@ -649,6 +657,8 @@ void on_event_jack_stopped(void)
g_studio.jack_running = false;
graph_destroy(g_studio.jack_graph);
/* TODO: if user wants, restart jack server and reconnect all jack apps to it */
}

View File

@ -184,6 +184,7 @@ def build(bld):
daemon.source = [
'jack_proxy.c',
'graph_proxy.c',
'catdup.c',
]