mirror of
https://gitlab.com/then-try-this/samplebrain.git
synced 2025-05-12 18:47:21 +00:00
31 lines
528 B
C++
31 lines
528 B
C++
#include "jellyfish/fluxa/OSC_server.h"
|
|
#include "brain.h"
|
|
#include <pthread.h>
|
|
|
|
#pragma once
|
|
|
|
namespace spiralcore {
|
|
|
|
class process_thread {
|
|
public:
|
|
process_thread();
|
|
~process_thread();
|
|
|
|
brain m_source, m_target;
|
|
pthread_mutex_t* m_brain_mutex;
|
|
|
|
void process();
|
|
|
|
private:
|
|
OSC_server m_osc;
|
|
u32 m_source_block_size;
|
|
float m_source_overlap;
|
|
u32 m_target_block_size;
|
|
float m_target_overlap;
|
|
window::type m_window_type;
|
|
window::type m_target_window_type;
|
|
pthread_t *m_thread;
|
|
};
|
|
|
|
}
|