LCOV - code coverage report
Current view: top level - src/media/audio/audio-processing - null_audio_processor.cpp (source / functions) Hit Total Coverage
Test: jami-coverage-filtered.info Lines: 0 9 0.0 %
Date: 2024-12-21 08:56:24 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /*
       2             :  *  Copyright (C) 2004-2024 Savoir-faire Linux Inc.
       3             :  *
       4             :  *  This program is free software: you can redistribute it and/or modify
       5             :  *  it under the terms of the GNU General Public License as published by
       6             :  *  the Free Software Foundation, either version 3 of the License, or
       7             :  *  (at your option) any later version.
       8             :  *
       9             :  *  This program is distributed in the hope that it will be useful,
      10             :  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
      11             :  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
      12             :  *  GNU General Public License for more details.
      13             :  *
      14             :  *  You should have received a copy of the GNU General Public License
      15             :  *  along with this program. If not, see <https://www.gnu.org/licenses/>.
      16             :  */
      17             : 
      18             : #include "null_audio_processor.h"
      19             : 
      20             : #include <cassert>
      21             : 
      22             : namespace jami {
      23             : 
      24           0 : NullAudioProcessor::NullAudioProcessor(AudioFormat format, unsigned frameSize)
      25           0 :     : AudioProcessor(format, frameSize)
      26             : {
      27           0 :     JAMI_DBG("[null_audio] NullAudioProcessor, frame size = %d (=%d ms), channels = %d",
      28             :              frameSize,
      29             :              frameDurationMs_,
      30             :              format.nb_channels);
      31           0 : }
      32             : 
      33             : std::shared_ptr<AudioFrame>
      34           0 : NullAudioProcessor::getProcessed()
      35             : {
      36           0 :     if (tidyQueues()) {
      37           0 :         return {};
      38             :     }
      39             : 
      40           0 :     playbackQueue_.dequeue();
      41           0 :     return recordQueue_.dequeue();
      42             : };
      43             : 
      44             : } // namespace jami

Generated by: LCOV version 1.14