File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // actions:
2- //
3- // * read from queue
4- // * read from array
5- // * write to queue
6- // * write to array
7- // * stop action (with and/or without time?)
8- // * query xrun stats etc.
9- // timestamp! start, duration (number of samples? unlimited?)
10- // return values: actual start, actual duration (number of samples?)
11- // queue usage: store smallest available write/read size
12- // xruns during the runtime of the current action
13- //
14- // if queue is empty/full, stop playback/recording
15-
161typedef unsigned long frame_t ;
172
183enum actiontype
@@ -22,6 +7,7 @@ enum actiontype
227 RECORD_BUFFER ,
238 RECORD_RINGBUFFER ,
249 CANCEL ,
10+ // TODO: action to query xrun stats etc.?
2511};
2612
2713struct action
@@ -39,6 +25,8 @@ struct action
3925 const frame_t total_frames ;
4026 frame_t done_frames ;
4127 // TODO: something to store the result of the action?
28+ // TODO: number of xruns during the runtime of the current action?
29+ // TODO: queue usage: store smallest available write/read size?
4230 const frame_t channels ; // Size of the following array
4331 const frame_t mapping []; // "flexible array member"
4432};
You can’t perform that action at this time.
0 commit comments