Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

RecordEngine Class Reference

#include <recordengine.h>

List of all members.

Public Member Functions

 RecordEngine (MWindow *mwindow, Record *record)
 RecordEngine (MWindow *mwindow, Record *record, File *file, Asset *asset, RecordLabels *labels)
 ~RecordEngine ()
int initialize ()
int set_gui (RecordGUI *gui)
long get_dc_offset (int offset)
int set_dc_offset (long new_offset, int number)
long get_dc_offset (long *dc_offset, RecordGUIDCOffsetText **dc_offset_text)
int run_script (FileXML *script)
int start_monitor ()
int stop_monitor ()
int pause_monitor ()
int resume_monitor ()
int start_saving (int duplex=0)
int stop_saving (int no_monitor=0)
int save_frame ()
int arm_duplex ()
int start_duplex ()
int stop_duplex ()
int start_preview ()
int stop_preview (int no_monitor=0)
int stop_operation (int no_monitor=0)
int start_over ()
int lock_window ()
int unlock_window ()
int set_video_picture ()
int open_input_devices (int duplex)
int close_input_devices ()
int open_output_devices ()
int close_output_devices ()
int delete_all_labels ()
int calibrate_dc_offset ()
int calibrate_dc_offset (long new_value, int channel)
int update_position (long new_position)
int update_total_length (long new_length)
int update_prev_label (long new_label)
int update_next_label (long new_label)
int goto_prev_label ()
int goto_next_label ()
int toggle_label ()
int reset_over ()
int set_done (int value)
int mode_to_text (char *string, int mode)
int text_to_mode (char *string)
long absolute_monitor_position ()
long absolute_preview_position ()
long absolute_record_position ()
ArrayList< char * > * get_video_inputs ()
int change_channel (Channel *channel)
int get_vu_format ()
int get_loop_hr ()
int get_loop_min ()
int get_loop_sec ()
long get_loop_duration ()
int set_loop_duration ()
int get_duplex_status ()
int set_duplex_status (int duplex_status)
int set_record_mode (char *text)
int set_monitor_video (int value)
int set_monitor_audio (int value)
int get_record_mode (char *text)
int get_record_mode ()
int get_dither ()
int get_duplex_enable ()
int get_input_channels ()
int get_format (char *string)
int get_samplerate ()
int get_time_format ()
float get_frames_per_foot ()
float get_min_db ()
float get_frame_rate ()
long get_current_position ()
int get_bits ()
long get_current_delay ()
long get_current_jumps ()
int reset_current_delay ()
int get_in_length ()
int get_meter_over_hold (int divisions)
int get_meter_peak_hold (int divisions)
int get_meter_speed ()

Public Attributes

Recordrecord
MWindowmwindow
RecordThreadmonitor_thread
RecordThreadrecord_thread
PlaybackEngineduplex_thread
RecordGUIgui
AudioDeviceadevice
VideoDevicevdevice
Filefile
Assetasset
RecordLabelslabels
Timer monitor_timer
Timer preview_timer
Timer record_timer
int record_mode
int is_saving
int is_previewing
int is_duplexing
int is_monitoring
long total_length
long current_position
long prev_label
long next_label

Private Attributes

long jump_delay [JUMP_DELAYS]
long current_jump_jumps [JUMP_DELAYS]
int current_jump_delay
int current_jump_jump


Detailed Description

Definition at line 22 of file recordengine.h.


Constructor & Destructor Documentation

RecordEngine::RecordEngine MWindow mwindow,
Record record
 

Definition at line 28 of file recordengine.C.

RecordEngine::RecordEngine MWindow mwindow,
Record record,
File file,
Asset asset,
RecordLabels labels
 

Definition at line 38 of file recordengine.C.

References adevice, Record::do_audio, Record::do_video, is_duplexing, is_monitoring, is_previewing, is_saving, next_label, prev_label, and vdevice.

RecordEngine::~RecordEngine  ) 
 

Definition at line 67 of file recordengine.C.

References adevice, monitor_thread, record_thread, and vdevice.


Member Function Documentation

long RecordEngine::absolute_monitor_position  ) 
 

Definition at line 724 of file recordengine.C.

References Record::do_audio, Record::get_samplerate(), is_monitoring, monitor_timer, and record.

long RecordEngine::absolute_preview_position  ) 
 

Definition at line 741 of file recordengine.C.

References Record::do_audio, Record::get_samplerate(), is_previewing, preview_timer, and record.

long RecordEngine::absolute_record_position  ) 
 

Definition at line 758 of file recordengine.C.

References Record::do_audio, Record::get_samplerate(), is_saving, record, and record_timer.

int RecordEngine::arm_duplex  ) 
 

int RecordEngine::calibrate_dc_offset long  new_value,
int  channel
 

Definition at line 558 of file recordengine.C.

References Record::dc_offset, Record::do_audio, record, and set_dc_offset().

int RecordEngine::calibrate_dc_offset  ) 
 

Definition at line 549 of file recordengine.C.

References Record::dc_offset, RecordGUI::dc_offset_text, Record::do_audio, get_dc_offset(), gui, and record.

int RecordEngine::change_channel Channel channel  ) 
 

Definition at line 611 of file recordengine.C.

References Record::do_video, record, VideoDevice::set_channel(), and vdevice.

int RecordEngine::close_input_devices  ) 
 

Definition at line 281 of file recordengine.C.

References adevice, VideoDevice::close_all(), AudioDevice::close_all(), Record::do_audio, Record::do_video, record, and vdevice.

int RecordEngine::close_output_devices  ) 
 

Definition at line 460 of file recordengine.C.

References adevice, AudioDevice::close_all(), Record::do_audio, and record.

int RecordEngine::delete_all_labels  ) 
 

int RecordEngine::get_bits  ) 
 

Definition at line 636 of file recordengine.C.

References asset, and Asset::bits.

long RecordEngine::get_current_delay  ) 
 

Definition at line 689 of file recordengine.C.

References current_jump_delay, current_jump_jump, current_jump_jumps, and jump_delay.

long RecordEngine::get_current_jumps  ) 
 

long RecordEngine::get_current_position  ) 
 

long int RecordEngine::get_dc_offset long *  dc_offset,
RecordGUIDCOffsetText **  dc_offset_text
 

Definition at line 183 of file recordengine.C.

References adevice, and AudioDevice::get_dc_offset().

long RecordEngine::get_dc_offset int  offset  ) 
 

Definition at line 173 of file recordengine.C.

References Record::dc_offset, and record.

Referenced by calibrate_dc_offset().

int RecordEngine::get_dither  ) 
 

Definition at line 628 of file recordengine.C.

References Asset::bits, Record::default_asset, Asset::dither, and record.

int RecordEngine::get_duplex_enable  ) 
 

Definition at line 194 of file recordengine.C.

References Record::enable_duplex(), and record.

int RecordEngine::get_duplex_status  ) 
 

int RecordEngine::get_format char *  string  ) 
 

Definition at line 630 of file recordengine.C.

References asset, file, Asset::format, File::formattostr(), mwindow, and MWindow::plugindb.

float RecordEngine::get_frame_rate  ) 
 

Definition at line 638 of file recordengine.C.

References Record::get_frame_rate(), and record.

float RecordEngine::get_frames_per_foot  ) 
 

Definition at line 647 of file recordengine.C.

int RecordEngine::get_in_length  ) 
 

Definition at line 714 of file recordengine.C.

References asset, Record::get_meter_speed(), and record.

int RecordEngine::get_input_channels  ) 
 

Definition at line 629 of file recordengine.C.

References asset, and Asset::channels.

long RecordEngine::get_loop_duration  ) 
 

Definition at line 642 of file recordengine.C.

References Record::loop_duration, and record.

int RecordEngine::get_loop_hr  ) 
 

Definition at line 639 of file recordengine.C.

References asset, Record::loop_duration, and record.

Referenced by get_loop_min(), and get_loop_sec().

int RecordEngine::get_loop_min  ) 
 

Definition at line 640 of file recordengine.C.

References asset, get_loop_hr(), Record::loop_duration, and record.

Referenced by get_loop_sec().

int RecordEngine::get_loop_sec  ) 
 

Definition at line 641 of file recordengine.C.

References asset, get_loop_hr(), get_loop_min(), Record::loop_duration, and record.

int RecordEngine::get_meter_over_hold int  divisions  ) 
 

Definition at line 644 of file recordengine.C.

int RecordEngine::get_meter_peak_hold int  divisions  ) 
 

Definition at line 645 of file recordengine.C.

int RecordEngine::get_meter_speed  ) 
 

Definition at line 646 of file recordengine.C.

References Record::get_meter_speed(), and record.

float RecordEngine::get_min_db  ) 
 

Definition at line 643 of file recordengine.C.

References Record::get_min_db(), and record.

int RecordEngine::get_record_mode  ) 
 

Definition at line 667 of file recordengine.C.

References record, and Record::record_mode.

Referenced by run_script().

int RecordEngine::get_record_mode char *  text  ) 
 

Definition at line 662 of file recordengine.C.

References mode_to_text(), record, and Record::record_mode.

int RecordEngine::get_samplerate  ) 
 

Definition at line 635 of file recordengine.C.

References asset.

int RecordEngine::get_time_format  ) 
 

Definition at line 637 of file recordengine.C.

References Record::get_time_format(), and record.

ArrayList< char * > * RecordEngine::get_video_inputs  ) 
 

Definition at line 619 of file recordengine.C.

References Record::do_video, VideoDevice::get_inputs(), record, and vdevice.

int RecordEngine::get_vu_format  ) 
 

Definition at line 627 of file recordengine.C.

References Record::get_vu_format(), and record.

int RecordEngine::goto_next_label  ) 
 

Definition at line 524 of file recordengine.C.

References current_position, Record::do_video, file, Record::get_framerate(), Record::get_samplerate(), RecordLabels::goto_next_label(), is_saving, labels, record, File::set_video_position(), stop_operation(), total_length, and update_position().

int RecordEngine::goto_prev_label  ) 
 

Definition at line 507 of file recordengine.C.

References current_position, Record::do_video, file, Record::get_framerate(), Record::get_samplerate(), RecordLabels::goto_prev_label(), is_saving, labels, record, File::set_video_position(), stop_operation(), and update_position().

int RecordEngine::initialize  ) 
 

Definition at line 76 of file recordengine.C.

References RecordThread::create_objects(), current_jump_jumps, current_position, Record::do_audio, Record::do_video, duplex_thread, file, File::get_audio_length(), Record::get_framerate(), Record::get_samplerate(), File::get_video_length(), jump_delay, monitor_thread, mwindow, record, record_thread, and total_length.

int RecordEngine::lock_window  ) 
 

Definition at line 470 of file recordengine.C.

References gui.

Referenced by RecordGUIOK::handle_event(), RecordGUIStartBatches::handle_event(), RecordGUIMonitorAudio::handle_event(), RecordGUIMonitorVideo::handle_event(), and RecordGUI::update_title().

int RecordEngine::mode_to_text char *  string,
int  mode
 

Definition at line 672 of file recordengine.C.

References _.

Referenced by get_record_mode(), and run_script().

int RecordEngine::open_input_devices int  duplex  ) 
 

Definition at line 203 of file recordengine.C.

References adevice, asset, AudioConfig::audio_duplex_driver, AudioConfig::audio_in_driver, Asset::channels, Record::dc_offset, Record::do_audio, Record::do_video, Record::get_software_positioning(), mwindow, AudioConfig::oss_duplex_bits, AudioConfig::oss_duplex_channels, AudioConfig::oss_duplex_device, AudioConfig::oss_in_bits, AudioConfig::oss_in_channels, AudioConfig::oss_in_device, record, VideoDevice::set_adevice(), AudioDevice::set_dc_offset(), AudioDevice::set_software_positioning(), AudioDevice::set_vdevice(), and vdevice.

Referenced by resume_monitor(), save_frame(), start_monitor(), and start_saving().

int RecordEngine::open_output_devices  ) 
 

Definition at line 446 of file recordengine.C.

References adevice, Record::do_audio, Record::get_software_positioning(), record, and AudioDevice::set_software_positioning().

Referenced by start_preview().

int RecordEngine::pause_monitor  ) 
 

Definition at line 310 of file recordengine.C.

References is_monitoring, monitor_thread, and RecordThread::pause_recording().

Referenced by save_frame(), start_preview(), and start_saving().

int RecordEngine::reset_current_delay  ) 
 

Definition at line 700 of file recordengine.C.

References current_jump_delay, current_jump_jump, and current_jump_jumps.

int RecordEngine::reset_over  ) 
 

Definition at line 568 of file recordengine.C.

int RecordEngine::resume_monitor  ) 
 

Definition at line 320 of file recordengine.C.

References is_monitoring, monitor_thread, monitor_timer, open_input_devices(), and RecordThread::resume_recording().

int RecordEngine::run_script FileXML script  ) 
 

Definition at line 111 of file recordengine.C.

References XMLTag::get_property_int(), XMLTag::get_property_text(), get_record_mode(), Record::get_samplerate(), gui, mode_to_text(), RecordGUI::monitor_video_window, RecordThread::quit_when_completed, FileXML::read_tag(), RecordGUI::rec_mode_menu, record, record_thread, Record::set_loop_duration(), set_monitor_audio(), set_monitor_video(), set_record_mode(), start_saving(), FileXML::tag, XMLTag::title_is(), RecordGUI::update_duration_boxes(), Record::video_window_open, and RecordMonitor::window.

int RecordEngine::save_frame  ) 
 

Definition at line 362 of file recordengine.C.

References Record::do_audio, is_saving, open_input_devices(), pause_monitor(), record, record_thread, record_timer, and RecordThread::start_recording().

int RecordEngine::set_dc_offset long  new_offset,
int  number
 

Definition at line 178 of file recordengine.C.

References adevice, and AudioDevice::set_dc_offset().

Referenced by calibrate_dc_offset().

int RecordEngine::set_done int  value  ) 
 

Definition at line 572 of file recordengine.C.

References gui, stop_monitor(), and stop_operation().

int RecordEngine::set_duplex_status int  duplex_status  ) 
 

int RecordEngine::set_gui RecordGUI gui  ) 
 

Definition at line 188 of file recordengine.C.

References current_position, and update_position().

int RecordEngine::set_loop_duration  ) 
 

Definition at line 706 of file recordengine.C.

References Record::get_samplerate(), gui, RecordGUI::loop_hr, RecordGUI::loop_min, RecordGUI::loop_sec, record, and Record::set_loop_duration().

int RecordEngine::set_monitor_audio int  value  ) 
 

Definition at line 653 of file recordengine.C.

Referenced by run_script().

int RecordEngine::set_monitor_video int  value  ) 
 

Definition at line 649 of file recordengine.C.

Referenced by run_script().

int RecordEngine::set_record_mode char *  text  ) 
 

Definition at line 657 of file recordengine.C.

References record, Record::record_mode, and text_to_mode().

Referenced by run_script().

int RecordEngine::set_video_picture  ) 
 

Definition at line 435 of file recordengine.C.

References Record::do_video, record, VideoDevice::set_picture(), and vdevice.

int RecordEngine::start_duplex  ) 
 

int RecordEngine::start_monitor  ) 
 

Definition at line 291 of file recordengine.C.

References is_monitoring, monitor_thread, monitor_timer, open_input_devices(), and RecordThread::start_recording().

int RecordEngine::start_over  ) 
 

Definition at line 579 of file recordengine.C.

References asset, File::close_file(), RecConfirmDelete::create_objects(), RecordLabels::delete_new_labels(), Record::do_audio, Record::do_video, file, File::get_audio_length(), Record::get_framerate(), File::get_video_length(), labels, mwindow, Asset::path, record, remove(), Record::startsource_frame, Record::startsource_sample, stop_operation(), total_length, and update_position().

int RecordEngine::start_preview  ) 
 

Definition at line 400 of file recordengine.C.

References current_position, file, is_previewing, open_output_devices(), pause_monitor(), preview_timer, and stop_operation().

int RecordEngine::start_saving int  duplex = 0  ) 
 

Definition at line 332 of file recordengine.C.

References adevice, duplex_thread, Record::enable_duplex(), is_duplexing, is_saving, open_input_devices(), pause_monitor(), record, and record_timer.

Referenced by run_script().

int RecordEngine::stop_duplex  ) 
 

Definition at line 388 of file recordengine.C.

References duplex_thread, and is_duplexing.

int RecordEngine::stop_monitor  ) 
 

Definition at line 300 of file recordengine.C.

Referenced by set_done().

int RecordEngine::stop_operation int  no_monitor = 0  ) 
 

Definition at line 426 of file recordengine.C.

References is_previewing, is_saving, stop_preview(), and stop_saving().

Referenced by goto_next_label(), goto_prev_label(), set_done(), start_over(), and start_preview().

int RecordEngine::stop_preview int  no_monitor = 0  ) 
 

Definition at line 416 of file recordengine.C.

References is_previewing.

Referenced by stop_operation().

int RecordEngine::stop_saving int  no_monitor = 0  ) 
 

Definition at line 378 of file recordengine.C.

References is_saving, record_thread, and RecordThread::stop_recording().

Referenced by stop_operation().

int RecordEngine::text_to_mode char *  string  ) 
 

Definition at line 682 of file recordengine.C.

References _.

Referenced by set_record_mode().

int RecordEngine::toggle_label  ) 
 

Definition at line 542 of file recordengine.C.

References current_position, labels, RecordLabels::toggle_label(), and update_position().

int RecordEngine::unlock_window  ) 
 

Definition at line 475 of file recordengine.C.

References gui.

Referenced by RecordGUIOK::handle_event(), RecordGUIStartBatches::handle_event(), RecordGUIMonitorAudio::handle_event(), RecordGUIMonitorVideo::handle_event(), and RecordGUI::update_title().

int RecordEngine::update_next_label long  new_label  ) 
 

int RecordEngine::update_position long  new_position  ) 
 

Definition at line 480 of file recordengine.C.

References current_position, RecordLabels::get_next_label(), RecordLabels::get_prev_label(), gui, labels, next_label, prev_label, total_length, RecordGUI::update_position(), and RecordGUI::update_prev_label().

Referenced by goto_next_label(), goto_prev_label(), set_gui(), start_over(), and toggle_label().

int RecordEngine::update_prev_label long  new_label  ) 
 

int RecordEngine::update_total_length long  new_length  ) 
 


Member Data Documentation

AudioDevice* RecordEngine::adevice
 

Definition at line 106 of file recordengine.h.

Referenced by close_input_devices(), close_output_devices(), get_dc_offset(), open_input_devices(), open_output_devices(), RecordEngine(), set_dc_offset(), start_saving(), and ~RecordEngine().

Asset* RecordEngine::asset
 

Definition at line 109 of file recordengine.h.

Referenced by get_bits(), get_format(), get_in_length(), get_input_channels(), get_loop_hr(), get_loop_min(), get_loop_sec(), get_samplerate(), open_input_devices(), and start_over().

int RecordEngine::current_jump_delay [private]
 

Definition at line 170 of file recordengine.h.

Referenced by get_current_delay(), and reset_current_delay().

int RecordEngine::current_jump_jump [private]
 

Definition at line 170 of file recordengine.h.

Referenced by get_current_delay(), and reset_current_delay().

long RecordEngine::current_jump_jumps[JUMP_DELAYS] [private]
 

Definition at line 169 of file recordengine.h.

Referenced by get_current_delay(), initialize(), and reset_current_delay().

long RecordEngine::current_position
 

Definition at line 120 of file recordengine.h.

Referenced by goto_next_label(), goto_prev_label(), initialize(), set_gui(), start_preview(), toggle_label(), and update_position().

PlaybackEngine* RecordEngine::duplex_thread
 

Definition at line 103 of file recordengine.h.

Referenced by initialize(), start_saving(), and stop_duplex().

File* RecordEngine::file
 

Definition at line 108 of file recordengine.h.

Referenced by get_format(), goto_next_label(), goto_prev_label(), initialize(), start_over(), and start_preview().

RecordGUI* RecordEngine::gui
 

Definition at line 105 of file recordengine.h.

Referenced by calibrate_dc_offset(), lock_window(), run_script(), set_done(), set_loop_duration(), unlock_window(), and update_position().

int RecordEngine::is_duplexing
 

Definition at line 117 of file recordengine.h.

Referenced by RecordEngine(), start_saving(), and stop_duplex().

int RecordEngine::is_monitoring
 

Definition at line 118 of file recordengine.h.

Referenced by absolute_monitor_position(), pause_monitor(), RecordEngine(), resume_monitor(), and start_monitor().

int RecordEngine::is_previewing
 

Definition at line 116 of file recordengine.h.

Referenced by absolute_preview_position(), RecordEngine(), start_preview(), stop_operation(), and stop_preview().

int RecordEngine::is_saving
 

Definition at line 115 of file recordengine.h.

Referenced by absolute_record_position(), goto_next_label(), goto_prev_label(), RecordEngine(), save_frame(), start_saving(), stop_operation(), and stop_saving().

long RecordEngine::jump_delay[JUMP_DELAYS] [private]
 

Definition at line 169 of file recordengine.h.

Referenced by get_current_delay(), and initialize().

RecordLabels* RecordEngine::labels
 

Definition at line 110 of file recordengine.h.

Referenced by goto_next_label(), goto_prev_label(), start_over(), toggle_label(), and update_position().

RecordThread* RecordEngine::monitor_thread
 

Definition at line 101 of file recordengine.h.

Referenced by initialize(), pause_monitor(), resume_monitor(), start_monitor(), and ~RecordEngine().

Timer RecordEngine::monitor_timer
 

Definition at line 113 of file recordengine.h.

Referenced by absolute_monitor_position(), resume_monitor(), and start_monitor().

MWindow* RecordEngine::mwindow
 

Definition at line 28 of file recordengine.h.

Referenced by get_format(), initialize(), open_input_devices(), and start_over().

long RecordEngine::next_label
 

Definition at line 122 of file recordengine.h.

Referenced by RecordEngine(), and update_position().

long RecordEngine::prev_label
 

Definition at line 121 of file recordengine.h.

Referenced by RecordEngine(), and update_position().

Timer RecordEngine::preview_timer
 

Definition at line 113 of file recordengine.h.

Referenced by absolute_preview_position(), and start_preview().

Record* RecordEngine::record
 

Definition at line 27 of file recordengine.h.

Referenced by absolute_monitor_position(), absolute_preview_position(), absolute_record_position(), calibrate_dc_offset(), change_channel(), close_input_devices(), close_output_devices(), get_dc_offset(), get_dither(), get_duplex_enable(), get_frame_rate(), get_in_length(), get_loop_duration(), get_loop_hr(), get_loop_min(), get_loop_sec(), get_meter_speed(), get_min_db(), get_record_mode(), get_time_format(), get_video_inputs(), get_vu_format(), goto_next_label(), goto_prev_label(), initialize(), open_input_devices(), open_output_devices(), run_script(), save_frame(), set_loop_duration(), set_record_mode(), set_video_picture(), start_over(), and start_saving().

int RecordEngine::record_mode
 

Definition at line 114 of file recordengine.h.

RecordThread* RecordEngine::record_thread
 

Definition at line 102 of file recordengine.h.

Referenced by initialize(), run_script(), save_frame(), stop_saving(), and ~RecordEngine().

Timer RecordEngine::record_timer
 

Definition at line 113 of file recordengine.h.

Referenced by absolute_record_position(), save_frame(), and start_saving().

long RecordEngine::total_length
 

Definition at line 119 of file recordengine.h.

Referenced by goto_next_label(), initialize(), start_over(), and update_position().

VideoDevice* RecordEngine::vdevice
 

Definition at line 107 of file recordengine.h.

Referenced by change_channel(), close_input_devices(), get_video_inputs(), open_input_devices(), RecordEngine(), set_video_picture(), and ~RecordEngine().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:23 2006 for Cinelerra-svn by  doxygen 1.4.4