diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-08 11:50:26 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-08 11:50:26 +0200 |
commit | 64b729f3284ead6a71fbeb7f8e0dd22187b21786 (patch) | |
tree | 60efb272d174f31bb93cfe561ac1c7ceeb3b412e /src/JackInput.cpp | |
parent | 561b6adce76dd209ebc547fcd98f525501742d97 (diff) | |
download | ODR-AudioEnc-64b729f3284ead6a71fbeb7f8e0dd22187b21786.tar.gz ODR-AudioEnc-64b729f3284ead6a71fbeb7f8e0dd22187b21786.tar.bz2 ODR-AudioEnc-64b729f3284ead6a71fbeb7f8e0dd22187b21786.zip |
Add doxygen configuration and target
Diffstat (limited to 'src/JackInput.cpp')
-rw-r--r-- | src/JackInput.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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<int16_t> buffer(m_channels * nframes); for (int chan = 0; chan < m_channels; chan++) { |