5
Worker::Worker() : m_Mutex(), m_shall_stop(false)
14
void Worker::stop_work()
16
std::lock_guard<std::mutex> lock(m_Mutex);
20
void Worker::do_work(CSoundCard *caller)
23
std::lock_guard<std::mutex> lock(m_Mutex);
24
data=caller->Get_Data();
30
std::this_thread::sleep_for(std::chrono::milliseconds(250));
32
std::lock_guard<std::mutex> lock(m_Mutex);
33
fft.fft_float(data->num_Samples, 0, data->RealIn, data->ImagIn,
34
data->data_out.RealOut, data->data_out.ImagOut);