samplebrain/samplebrain/qt/process_thread.h

47 lines
1.3 KiB
C
Raw Normal View History

2015-07-21 10:58:13 -03:00
// Copyright (C) 2015 Dave Griffiths
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2015-07-11 15:03:05 -03:00
#include "jellyfish/fluxa/OSC_server.h"
#include "brain.h"
#include <pthread.h>
#pragma once
namespace spiralcore {
class process_thread {
public:
process_thread();
~process_thread();
2015-07-11 15:03:05 -03:00
brain m_source, m_target;
pthread_mutex_t* m_brain_mutex;
2015-07-11 17:30:16 -03:00
void process();
2015-07-11 15:03:05 -03:00
private:
OSC_server m_osc;
2015-07-11 17:30:16 -03:00
u32 m_source_block_size;
float m_source_overlap;
u32 m_target_block_size;
float m_target_overlap;
2015-07-18 20:34:56 -03:00
window::type m_window_type;
window::type m_target_window_type;
pthread_t *m_thread;
2015-07-11 15:03:05 -03:00
};
}