es.po update by rafa, add ms win10 cygwin port, add pulseaudio, new config flags...
[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         char pulse_in_server[1024];
47         int esound_in_port;
48
49 // Output
50         int audio_out_driver;
51         char oss_out_device[1024];
52         char esound_out_server[1024];
53         char pulse_out_server[1024];
54         int esound_out_port;
55         int oss_out_channels;
56         int oss_out_bits;
57 };
58
59 #endif