2013-04-20 12:37:36 +02:00
|
|
|
|
|
|
|
#ifndef LUPPP_EVENT_HANDLER_H
|
|
|
|
#define LUPPP_EVENT_HANDLER_H
|
|
|
|
|
2013-04-20 12:54:16 +02:00
|
|
|
#include "event.hxx"
|
2013-04-20 12:37:36 +02:00
|
|
|
#include <jack/ringbuffer.h>
|
|
|
|
|
|
|
|
extern char* processDspMem;
|
2013-05-16 14:38:46 +02:00
|
|
|
extern char* processGuiMem;
|
2013-04-20 12:37:36 +02:00
|
|
|
|
|
|
|
extern jack_ringbuffer_t* rbToDsp;
|
2013-05-16 14:38:46 +02:00
|
|
|
extern jack_ringbuffer_t* rbToGui;
|
2013-04-20 12:37:36 +02:00
|
|
|
|
|
|
|
// to process events in the ringbuffer
|
|
|
|
extern void handleDspEvents();
|
2013-05-16 14:38:46 +02:00
|
|
|
extern void handleGuiEvents();
|
2013-04-20 12:37:36 +02:00
|
|
|
|
|
|
|
// to write events to the ringbuffer
|
|
|
|
extern void writeToDspRingbuffer(EventBase* e);
|
2013-05-16 14:38:46 +02:00
|
|
|
extern void writeToGuiRingbuffer(EventBase* e);
|
2013-04-20 12:37:36 +02:00
|
|
|
|
|
|
|
#endif // LUPPP_EVENT_HANDLER_H
|
|
|
|
|