aboutsummaryrefslogtreecommitdiffstats
path: root/src/JackInput.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/JackInput.h')
-rw-r--r--src/JackInput.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/JackInput.h b/src/JackInput.h
index 36cd34f..ba4834e 100644
--- a/src/JackInput.h
+++ b/src/JackInput.h
@@ -1,6 +1,6 @@
/* ------------------------------------------------------------------
* Copyright (C) 2011 Martin Storsjo
- * Copyright (C) 2013,2014 Matthias P. Braendli
+ * Copyright (C) 2016 Matthias P. Braendli
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,11 @@
* and limitations under the License.
* -------------------------------------------------------------------
*/
+/*! \section JACK Input
+ *
+ * This input uses JACK to get audio data. This always uses drift
+ * compensation, because there is no blocking way to read from JACK.
+ */
#ifndef __JACK_INPUT_H
#define __JACK_INPUT_H
@@ -53,13 +58,16 @@ class JackInput
}
}
- /* Prepare the audio input */
+ /*! Prepare the audio input
+ *
+ * \return 0 on success
+ */
int prepare();
private:
JackInput(const JackInput& other);
- jack_client_t* m_client;
+ jack_client_t *m_client;
std::vector<jack_port_t*> m_input_ports;
@@ -82,13 +90,13 @@ class JackInput
SampleQueue<uint8_t>& m_queue;
// Static functions for JACK callbacks
- static int process_cb(jack_nframes_t nframes, void* arg)
+ static int process_cb(jack_nframes_t nframes, void *arg)
{
((JackInput*)arg)->jack_process(nframes);
return 0;
}
- static void shutdown_cb(void* arg)
+ static void shutdown_cb(void *arg)
{
((JackInput*)arg)->jack_shutdown();
}