change cv to gg, silence select bug fix, update ffmpeg.opts, update msg+Features5
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / audioconfig.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  */
21
22 #ifndef AUDIOCONFIG_H
23 #define AUDIOCONFIG_H
24
25 #include "bchash.inc"
26
27 // OSS requires specific channel and bitrate settings for full duplex
28
29 class AudioConfig
30 {
31 public:
32         AudioConfig();
33         ~AudioConfig();
34
35         AudioConfig& operator=(AudioConfig &that);
36         int load_defaults(BC_Hash *defaults);
37         int save_defaults(BC_Hash *defaults);
38
39 // Input
40         int audio_in_driver;
41         char oss_in_device[1024];
42         int oss_in_channels;
43         int oss_in_bits;
44         int afirewire_in_port, afirewire_in_channel;
45         char esound_in_server[1024];
46         int esound_in_port;
47
48 // Output
49         int audio_out_driver;
50         char oss_out_device[1024];
51         char esound_out_server[1024];
52         int esound_out_port;
53         int oss_out_channels;
54         int oss_out_bits;
55 };
56
57 #endif