1 |
/* |
/* |
2 |
* Copyright (C) 2007 - 2017 Andreas Persson |
* Copyright (C) 2007 - 2019 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
177 |
const Glib::RefPtr<Glib::TimeoutSource> timeout_source = |
const Glib::RefPtr<Glib::TimeoutSource> timeout_source = |
178 |
Glib::TimeoutSource::create(100); // poll every 100ms |
Glib::TimeoutSource::create(100); // poll every 100ms |
179 |
timeout_source->connect( |
timeout_source->connect( |
180 |
sigc::mem_fun(this, &LinuxSamplerPlugin::__onPollPeriod) |
sigc::mem_fun(*this, &LinuxSamplerPlugin::__onPollPeriod) |
181 |
); |
); |
182 |
timeout_source->attach(Glib::MainContext::get_default()); |
timeout_source->attach(Glib::MainContext::get_default()); |
183 |
|
|