From 64b729f3284ead6a71fbeb7f8e0dd22187b21786 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 8 Jul 2016 11:50:26 +0200 Subject: Add doxygen configuration and target --- src/JackInput.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/JackInput.h') 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 m_input_ports; @@ -82,13 +90,13 @@ class JackInput SampleQueue& 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(); } -- cgit v1.2.3