GNU Radio's DAB Package
xrun_monitor_cc_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2018 Ruben Undheim <ruben.undheim@gmail.com>
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef INCLUDED_CAPTURE_TOOLS_XRUN_MONITOR_CC_IMPL_H
22#define INCLUDED_CAPTURE_TOOLS_XRUN_MONITOR_CC_IMPL_H
23
24#include <dab/xrun_monitor_cc.h>
25
26namespace gr {
27 namespace dab {
28
30 {
31 private:
32 // Nothing to declare in this block.
33 int d_n;
34 int d_produce_per;
35 gr_complex *d_buffer;
36 int d_write_index;
37 int d_read_index;
38 int d_length;
39 bool d_first;
40 bool d_starting;
41 bool d_drop_when_full;
42 bool d_stop_until_tag;
43 bool d_report_fill;
44
45 boost::mutex common_mutex;
46
47 public:
50
51 void forecast (int noutput_items, gr_vector_int &ninput_items_required);
52
53 int general_work(int noutput_items,
54 gr_vector_int &ninpnut_items,
55 gr_vector_const_void_star &input_items,
56 gr_vector_void_star &output_items);
57
58 void set_drop_when_full(bool val);
60 void set_report_fill(bool val);
61
62 };
63
64 } // namespace dab
65} // namespace gr
66
67#endif /* INCLUDED_CAPTURE_TOOLS_XRUN_MONITOR_CC_IMPL_H */
68
Definition xrun_monitor_cc_impl.h:30
int general_work(int noutput_items, gr_vector_int &ninpnut_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
void set_drop_when_full(bool val)
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
<+description of block+>
Definition xrun_monitor_cc.h:37
Definition complex_to_interleaved_float_vcf.h:28