Loopp/src/main.cxx

41 lines
656 B
C++
Raw Normal View History

2013-04-20 12:37:36 +02:00
// Library
#include <iostream>
#include <unistd.h>
#include <jack/ringbuffer.h>
// Internal
2013-04-20 12:50:30 +02:00
#include "gui.hxx"
2013-04-20 12:37:36 +02:00
#include "jack.hxx"
2013-04-20 12:54:16 +02:00
#include "event.hxx"
2013-04-20 12:37:36 +02:00
char* processDspMem = 0;
char* processOscMem = 0;
jack_ringbuffer_t* rbToDsp = 0;
jack_ringbuffer_t* rbToGui = 0;
Jack* jack = 0;
int main()
{
2013-04-20 12:54:16 +02:00
// allocate data to read from
processDspMem = (char*)malloc( sizeof(EventBase) );
processOscMem = (char*)malloc( sizeof(EventBase) );
rbToDsp = jack_ringbuffer_create( 2000 * sizeof(EventBase));
rbToGui = jack_ringbuffer_create( 2000 * sizeof(EventBase));
2013-04-20 12:37:36 +02:00
jack = new Jack();
jack->activate();
2013-04-20 12:50:30 +02:00
Gui gui;
gui.show();
2013-04-20 12:37:36 +02:00
}