1 /*
2  *  This file is part of vban.
3  *  Copyright (c) 2017 by Benoît Quiniou <quiniouben@yahoo.fr>
4  *
5  *  vban 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 of the License, or
8  *  (at your option) any later version.
9  *
10  *  vban 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 vban.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef __STREAM_H__
20 #define __STREAM_H__
21 
22 #include "vban/vban.h"
23 
24 /**
25  * stream_config_t structure.
26  * This structures helps to pass the stream important audio parameters around.
27  */
28 struct stream_config_t
29 {
30     unsigned int            nb_channels;
31     unsigned int            sample_rate;
32     enum VBanBitResolution  bit_fmt;
33 };
34 
35 /**
36  * Helper function to parse command line parameter.
37  */
38 enum VBanBitResolution stream_parse_bit_fmt(char const* argv);
39 char const* stream_print_bit_fmt(enum VBanBitResolution bit_fmt);
40 
41 /**
42  * Helper function to get the help message.
43  */
44 char const* stream_bit_fmt_help();
45 
46 #endif /*__STREAM_H__*/
47 
48