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.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/JackInput.cpp') diff --git a/src/JackInput.cpp b/src/JackInput.cpp index 51de6e4..a94f2e7 100644 --- a/src/JackInput.cpp +++ b/src/JackInput.cpp @@ -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. @@ -104,7 +104,10 @@ int JackInput::prepare() void JackInput::jack_process(jack_nframes_t nframes) { - // Convert samples to shorts + /*! JACK works with float samples, we need to convert + * them to shorts first. This is done using a saturated + * conversion to avoid glitches. + */ std::vector buffer(m_channels * nframes); for (int chan = 0; chan < m_channels; chan++) { -- cgit v1.2.3