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

RecordAudio Class Reference

#include <recordaudio.h>

List of all members.

Public Member Functions

 RecordAudio (MWindow *mwindow, Record *record, RecordThread *record_thread)
 ~RecordAudio ()
void run ()
int arm_recording ()
void start_recording ()
int stop_recording ()
void rewind_file ()
void finish_loop ()
void finish_timed ()
void reset_parameters ()
int set_position (int64_t position)
int64_t sync_position ()
void write_buffer (int skip_new=0)

Public Attributes

int batch_done

Private Attributes

MWindowmwindow
Recordrecord
RecordThreadrecord_thread
double * max
int * over
double ** input
RecordGUIgui
int buffer_size
int fragment_size
int64_t fragment_position
int record_channels
Mutex * timer_lock
Condition * trigger_lock
Timer timer
int write_result
int grab_result


Detailed Description

Definition at line 16 of file recordaudio.h.


Constructor & Destructor Documentation

RecordAudio::RecordAudio MWindow mwindow,
Record record,
RecordThread record_thread
 

Definition at line 28 of file recordaudio.C.

References fragment_position, gui, Record::record_gui, timer_lock, and trigger_lock.

RecordAudio::~RecordAudio  ) 
 

Definition at line 42 of file recordaudio.C.

References timer_lock, and trigger_lock.


Member Function Documentation

int RecordAudio::arm_recording  ) 
 

Definition at line 55 of file recordaudio.C.

References buffer_size, Asset::channels, Record::default_asset, MWindow::edl, fragment_size, Record::get_audio_write_length(), mwindow, EDLSession::real_time_record, record, record_channels, reset_parameters(), EDL::session, timer, and trigger_lock.

Referenced by RecordThread::run().

void RecordAudio::finish_loop  ) 
 

void RecordAudio::finish_timed  ) 
 

void RecordAudio::reset_parameters  ) 
 

Definition at line 48 of file recordaudio.C.

References batch_done, and fragment_position.

Referenced by arm_recording().

void RecordAudio::rewind_file  ) 
 

void RecordAudio::run  ) 
 

Definition at line 85 of file recordaudio.C.

References _, Record::adevice, batch_done, buffer_size, Record::current_display_position(), Record::current_duration(), Batch::current_sample, Record::default_asset, Record::file, fragment_position, fragment_size, File::get_audio_buffer(), Record::get_current_batch(), grab_result, MWindow::gui, gui, input, max, MeterPanel::meters, RecordMonitorGUI::meters, RecordThread::monitor, Record::monitor_audio, mwindow, over, AudioDevice::read_buffer(), record, record_channels, Batch::record_mode, Record::record_monitor, record_thread, Batch::session_samples, timer, timer_lock, RecordGUI::total_clipped_samples, Batch::total_samples, trigger_lock, RecordGUI::update_clipped_samples(), RecordGUI::update_position(), Asset::video_data, RecordMonitor::window, write_buffer(), and write_result.

int RecordAudio::set_position int64_t  position  ) 
 

void RecordAudio::start_recording  ) 
 

Definition at line 69 of file recordaudio.C.

References trigger_lock.

Referenced by RecordThread::run().

int RecordAudio::stop_recording  ) 
 

Definition at line 74 of file recordaudio.C.

References Record::adevice, AudioDevice::interrupt_crash(), and record.

Referenced by RecordThread::pause_recording(), RecordVideo::run(), and RecordThread::stop_recording().

int64_t RecordAudio::sync_position  ) 
 

Definition at line 296 of file recordaudio.C.

References Record::adevice, batch_done, AudioDevice::current_position(), Record::default_asset, MWindow::edl, Record::get_current_batch(), mwindow, record, EDLSession::record_software_position, Asset::sample_rate, EDL::session, Batch::session_samples, timer, and timer_lock.

Referenced by RecordThread::sync_position().

void RecordAudio::write_buffer int  skip_new = 0  ) 
 

Definition at line 286 of file recordaudio.C.

References Record::default_asset, Record::file, fragment_position, File::get_audio_buffer(), input, record, Asset::video_data, File::write_audio_buffer(), and write_result.

Referenced by run().


Member Data Documentation

int RecordAudio::batch_done
 

Definition at line 43 of file recordaudio.h.

Referenced by RecordThread::pause_recording(), reset_parameters(), RecordThread::resume_recording(), RecordVideo::run(), run(), RecordThread::stop_recording(), and sync_position().

int RecordAudio::buffer_size [private]
 

Definition at line 54 of file recordaudio.h.

Referenced by arm_recording(), and run().

int64_t RecordAudio::fragment_position [private]
 

Definition at line 55 of file recordaudio.h.

Referenced by RecordAudio(), reset_parameters(), run(), and write_buffer().

int RecordAudio::fragment_size [private]
 

Definition at line 54 of file recordaudio.h.

Referenced by arm_recording(), and run().

int RecordAudio::grab_result [private]
 

Definition at line 60 of file recordaudio.h.

Referenced by run().

RecordGUI* RecordAudio::gui [private]
 

Definition at line 53 of file recordaudio.h.

Referenced by RecordAudio(), and run().

double** RecordAudio::input [private]
 

Definition at line 52 of file recordaudio.h.

Referenced by run(), and write_buffer().

double* RecordAudio::max [private]
 

Definition at line 50 of file recordaudio.h.

Referenced by run().

MWindow* RecordAudio::mwindow [private]
 

Definition at line 47 of file recordaudio.h.

Referenced by arm_recording(), run(), and sync_position().

int* RecordAudio::over [private]
 

Definition at line 51 of file recordaudio.h.

Referenced by run().

Record* RecordAudio::record [private]
 

Definition at line 48 of file recordaudio.h.

Referenced by arm_recording(), run(), stop_recording(), sync_position(), and write_buffer().

int RecordAudio::record_channels [private]
 

Definition at line 56 of file recordaudio.h.

Referenced by arm_recording(), and run().

RecordThread* RecordAudio::record_thread [private]
 

Definition at line 49 of file recordaudio.h.

Referenced by run().

Timer RecordAudio::timer [private]
 

Definition at line 59 of file recordaudio.h.

Referenced by arm_recording(), run(), and sync_position().

Mutex* RecordAudio::timer_lock [private]
 

Definition at line 57 of file recordaudio.h.

Referenced by RecordAudio(), run(), sync_position(), and ~RecordAudio().

Condition* RecordAudio::trigger_lock [private]
 

Definition at line 58 of file recordaudio.h.

Referenced by arm_recording(), RecordAudio(), run(), start_recording(), and ~RecordAudio().

int RecordAudio::write_result [private]
 

Definition at line 60 of file recordaudio.h.

Referenced by run(), and write_buffer().


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