RecordAudio Class Reference

#include <recordaudio.h>

Inherits Thread.

Collaboration diagram for RecordAudio:

Collaboration graph
[legend]

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)

Data Fields

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
Mutextimer_lock
Conditiontrigger_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

void RecordAudio::run (  )  [virtual]

int RecordAudio::arm_recording (  ) 

void RecordAudio::start_recording (  ) 

Definition at line 70 of file recordaudio.C.

References trigger_lock, and Condition::unlock().

Referenced by RecordThread::run().

Here is the call graph for this function:

int RecordAudio::stop_recording (  ) 

Definition at line 75 of file recordaudio.C.

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

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

Here is the call graph for this function:

void RecordAudio::rewind_file (  ) 

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().

int RecordAudio::set_position ( int64_t  position  ) 

int64_t RecordAudio::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().

Here is the call graph for this function:


Field Documentation

Definition at line 47 of file recordaudio.h.

Referenced by run(), and sync_position().

Definition at line 48 of file recordaudio.h.

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

Definition at line 49 of file recordaudio.h.

Referenced by run().

double* RecordAudio::max [private]

Definition at line 50 of file recordaudio.h.

Referenced by run().

int* RecordAudio::over [private]

Definition at line 51 of file recordaudio.h.

Referenced by run().

double** RecordAudio::input [private]

Definition at line 52 of file recordaudio.h.

Referenced by run(), and write_buffer().

Definition at line 53 of file recordaudio.h.

Referenced by RecordAudio(), and run().

int RecordAudio::buffer_size [private]

Definition at line 54 of file recordaudio.h.

Referenced by arm_recording(), and run().

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().

Definition at line 56 of file recordaudio.h.

Referenced by arm_recording(), and run().

Definition at line 57 of file recordaudio.h.

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

Definition at line 58 of file recordaudio.h.

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

Definition at line 59 of file recordaudio.h.

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

Definition at line 60 of file recordaudio.h.

Referenced by run(), and write_buffer().

int RecordAudio::grab_result [private]

Definition at line 60 of file recordaudio.h.

Referenced by run().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:38:07 2008 for Cinelerra by  doxygen 1.5.5