summaryrefslogtreecommitdiff
path: root/drumgizmo/jackclient.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-03-24 11:43:28 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-03-24 11:43:52 +0100
commit2c86dc7a3c25e95e3c35c945f9b54ff8c0b858a1 (patch)
tree84a002d20735ecf0fc7a41359a71d8b365ecfb1e /drumgizmo/jackclient.cc
parentdc4c80f6596c2c14b3874c63aa1a7b4d0f59d4a5 (diff)
Make jack process callback private.
Diffstat (limited to 'drumgizmo/jackclient.cc')
-rw-r--r--drumgizmo/jackclient.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/drumgizmo/jackclient.cc b/drumgizmo/jackclient.cc
index 4f14c09..e493e1b 100644
--- a/drumgizmo/jackclient.cc
+++ b/drumgizmo/jackclient.cc
@@ -52,16 +52,19 @@ JackPort::~JackPort()
// --------------------------------------------------------------------
-static int _wrap_jack_process(jack_nframes_t nframes, void* arg)
+int JackClient::wrapJackProcess(jack_nframes_t nframes, void* arg)
{
return static_cast<JackClient*>(arg)->process(nframes);
}
-JackClient::JackClient() : client{nullptr}, processes{}, is_active{false}
+JackClient::JackClient()
+ : client{nullptr}
+ , processes{}
+ , is_active{false}
{
jack_status_t status;
client = jack_client_open("DrumGizmo", JackNullOption, &status);
- jack_set_process_callback(client, _wrap_jack_process, this);
+ jack_set_process_callback(client, JackClient::wrapJackProcess, this);
}
JackClient::~JackClient()