4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
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.
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.
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
22 #ifndef RECORDCONFIG_H
23 #define RECORDCONFIG_H
25 #include "playbackconfig.inc"
26 #include "bcwindowbase.inc"
27 #include "recordaudio.inc"
28 #include "recordvideo.inc"
31 // This structure is passed to the driver
34 friend class RecordAudio;
39 AudioInConfig& operator=(AudioInConfig &that);
40 void copy_from(AudioInConfig *src);
41 int load_defaults(BC_Hash *defaults);
42 int save_defaults(BC_Hash *defaults);
44 // Determine if the two devices need to be opened in duplex mode
45 static int is_duplex(AudioInConfig *in, AudioOutConfig *out);
48 int oss_enable[MAXDEVICES];
49 char oss_in_device[MAXDEVICES][BCTEXTLEN];
52 int firewire_port, firewire_channel;
53 char firewire_path[BCTEXTLEN];
55 char esound_in_server[BCTEXTLEN];
57 char alsa_in_device[BCTEXTLEN];
59 char dvb_in_adapter[BCTEXTLEN];
65 // This should come from EDLSession::recording_format
72 // This structure is passed to the driver
75 friend class RecordVideo;
80 VideoInConfig& operator=(VideoInConfig &that);
81 void copy_from(VideoInConfig *src);
82 int load_defaults(BC_Hash *defaults);
83 int save_defaults(BC_Hash *defaults);
84 const char *get_path();
85 static const char *default_video_device;
88 char v4l2_in_device[BCTEXTLEN];
89 char v4l2jpeg_in_device[BCTEXTLEN];
90 int v4l2jpeg_in_fields;
91 char v4l2mpeg_in_device[BCTEXTLEN];
92 char screencapture_display[BCTEXTLEN];
93 int firewire_port, firewire_channel;
94 char firewire_path[BCTEXTLEN];
95 char dvb_in_adapter[BCTEXTLEN];
98 // number of frames to read from device during video recording.
100 // Dimensions of captured frame
102 // Frame rate of captured frames
104 // update default config after probe