license header for review
[cinelerra_cv/ct.git] / cinelerra / virtualaconsole.h
blob0a9fba1b8e8d00b8fddc10e1b6a0d70a25c37ef4
1 #ifndef ARENDERTHREAD_H
2 #define ARENDERTHREAD_H
5 #include "arender.inc"
6 #include "filethread.inc" // RING_BUFFERS
7 #include "virtualconsole.h"
9 class VirtualAConsole : public VirtualConsole
11 public:
12 VirtualAConsole(RenderEngine *renderengine, ARender *arender);
13 virtual ~VirtualAConsole();
15 int set_transport(int reverse, float speed);
16 void get_playable_tracks();
18 // process a buffer
19 int process_buffer(int buffer,
20 int64_t input_len,
21 int64_t input_position,
22 int64_t absolute_position);
24 int process_buffer(int64_t input_len,
25 int64_t input_position,
26 int last_buffer,
27 int64_t absolute_position);
29 void process_asynchronous();
31 // set up virtual console and buffers
32 int init_rendering(int duplicate);
33 // int build_virtual_console(int duplicate, int64_t current_position);
34 VirtualNode* new_entry_node(Track *track,
35 Module *module,
36 int track_number);
38 // cause audio device to quit
39 int send_last_output_buffer();
41 // Temporary for audio rendering. This stores each track's output before it is
42 // mixed into the device buffer.
43 double *output_temp;
44 int output_allocation;
46 ARender *arender;
50 #endif
52 // Local Variables:
53 // mode: C++
54 // c-file-style: "linux"
55 // End: