00001 #ifndef RECORDCONFIG_H 00002 #define RECORDCONFIG_H 00003 00004 #include "playbackconfig.inc" 00005 #include "bcwindowbase.inc" 00006 #include "bchash.inc" 00007 00008 // This structure is passed to the driver 00009 class AudioInConfig 00010 { 00011 public: 00012 AudioInConfig(); 00013 ~AudioInConfig(); 00014 00015 AudioInConfig& operator=(AudioInConfig &that); 00016 void copy_from(AudioInConfig *src); 00017 int load_defaults(BC_Hash *defaults); 00018 int save_defaults(BC_Hash *defaults); 00019 00020 // Determine if the two devices need to be opened in duplex mode 00021 static int is_duplex(AudioInConfig *in, AudioOutConfig *out); 00022 00023 int driver; 00024 int oss_enable[MAXDEVICES]; 00025 char oss_in_device[MAXDEVICES][BCTEXTLEN]; 00026 int oss_in_bits; 00027 00028 int firewire_port, firewire_channel; 00029 char firewire_path[BCTEXTLEN]; 00030 00031 char esound_in_server[BCTEXTLEN]; 00032 int esound_in_port; 00033 char alsa_in_device[BCTEXTLEN]; 00034 int alsa_in_bits; 00035 int in_samplerate; 00036 00037 // This should come from EDLSession::recording_format 00038 int channels; 00039 }; 00040 00041 // This structure is passed to the driver 00042 class VideoInConfig 00043 { 00044 public: 00045 VideoInConfig(); 00046 ~VideoInConfig(); 00047 00048 VideoInConfig& operator=(VideoInConfig &that); 00049 void copy_from(VideoInConfig *src); 00050 int load_defaults(BC_Hash *defaults); 00051 int save_defaults(BC_Hash *defaults); 00052 char* get_path(); 00053 00054 int driver; 00055 char v4l_in_device[BCTEXTLEN]; 00056 char v4l2_in_device[BCTEXTLEN]; 00057 char v4l2jpeg_in_device[BCTEXTLEN]; 00058 char lml_in_device[BCTEXTLEN]; 00059 char buz_in_device[BCTEXTLEN]; 00060 char screencapture_display[BCTEXTLEN]; 00061 00062 00063 // DVB 00064 char dvb_in_host[BCTEXTLEN]; 00065 int dvb_in_port; 00066 int dvb_in_number; 00067 00068 int firewire_port, firewire_channel; 00069 char firewire_path[BCTEXTLEN]; 00070 00071 // number of frames to read from device during video recording. 00072 int capture_length; 00073 // Dimensions of captured frame 00074 int w, h; 00075 // Frame rate of captured frames 00076 float in_framerate; 00077 }; 00078 00079 00080 #endif
1.5.5