4 #include "audiodevice.inc"
10 #include "recordgui.inc"
11 #include "recordthread.inc"
15 class RecordAudio
: public Thread
18 RecordAudio(MWindow
*mwindow
,
20 RecordThread
*record_thread
);
24 // start saving audio data to file
26 void start_recording();
27 // Called by record thread if audio is the only thing.
28 // Called by video recording if video and audio are being recorded.
33 void reset_parameters();
35 // seek to a new location in the file
36 int set_position(int64_t position
);
37 int64_t sync_position();
39 void write_buffer(int skip_new
= 0); // write the buffer
40 // Want one thread to dictate the other during shared device recording.
48 RecordThread
*record_thread
;
53 int64_t buffer_size
, fragment_size
, fragment_position
;
58 int write_result
, grab_result
;