00001 #ifndef RECORDCONFIG_H 00002 #define RECORDCONFIG_H 00003 00004 #include "playbackconfig.inc" 00005 #include "bcwindowbase.inc" 00006 #include "defaults.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(Defaults *defaults); 00018 int save_defaults(Defaults *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_channels[MAXDEVICES]; 00027 int oss_in_bits; 00028 00029 int firewire_port, firewire_channel; 00030 char firewire_path[BCTEXTLEN]; 00031 00032 char esound_in_server[BCTEXTLEN]; 00033 int esound_in_port; 00034 char alsa_in_device[BCTEXTLEN]; 00035 int alsa_in_channels; 00036 int alsa_in_bits; 00037 int in_samplerate; 00038 }; 00039 00040 // This structure is passed to the driver 00041 class VideoInConfig 00042 { 00043 public: 00044 VideoInConfig(); 00045 ~VideoInConfig(); 00046 00047 VideoInConfig& operator=(VideoInConfig &that); 00048 void copy_from(VideoInConfig *src); 00049 int load_defaults(Defaults *defaults); 00050 int save_defaults(Defaults *defaults); 00051 char* get_path(); 00052 00053 int driver; 00054 char v4l_in_device[BCTEXTLEN]; 00055 char v4l2_in_device[BCTEXTLEN]; 00056 char v4l2jpeg_in_device[BCTEXTLEN]; 00057 char lml_in_device[BCTEXTLEN]; 00058 char buz_in_device[BCTEXTLEN]; 00059 char screencapture_display[BCTEXTLEN]; 00060 00061 00062 int firewire_port, firewire_channel; 00063 char firewire_path[BCTEXTLEN]; 00064 00065 // number of frames to read from device during video recording. 00066 int capture_length; 00067 // Dimensions of captured frame 00068 int w, h; 00069 // Frame rate of captured frames 00070 float in_framerate; 00071 }; 00072 00073 00074 #endif
1.4.4