26
26
void timer_func_start();
27
27
void timer_func_stop();
29
void timer_evaluate_triggers(GstClockTimeDiff time_diff, gdouble rms);
29
31
void timer_module_reset(gint for_state);
32
34
gchar action; // recording action: 'S' = start, 'T' = stop, 'P' = pause
33
35
gchar action_prep; // action preposition: 'a' = after
34
36
gchar data_type; // data type: 't' = time data, 'f' = file size, 'l' = label
35
double val[3]; // data: hh, mm, ss | file size | silence/voice/audio/sound duration
37
gdouble val[3]; // data: hh, mm, ss | file size | silence/voice/audio/sound duration
36
38
gchar label[12]; // textual action: "silence" | ("sound" | "voice" | "audio") | ("bytes" | "kb" | "mb" | "gb" | "tb")
38
gchar level_unit[10]; // level unit: "dB" (decibel) | "%"
39
double level; // level value in dB or %
41
gint day_of_year; // Internal flag. Used to check if the clock has gone around to next day.
42
gint64 seconds; // Internal value. Count seconds for this command.
44
gint64 seconds_x; // Internal value. Count seconds to resume recording after "silence" command.
45
// Or count seconds to pause recording if started with "sound", "voice" or "audio" commands.
47
gboolean done; // Internal value. TRUE when this timer command has been executed.
40
gchar threshold_unit[10]; // level/threshold unit: "dB" (decibel) | "%" or empty
41
gdouble threshold; // level/threshold value in dB, % or plain value [0 - 1.0]
43
gint day_of_year; // Internal flag. Used to check if the clock has gone around to next day
45
gdouble norm_secs; // = tr->val[0]*3600 + tr->val[1]*60 + tr->val[2] seconds
46
gdouble norm_threshold; // = threshold converted to [0 - 1.0] from threshold_unit
48
gdouble time_above; // Internal value. Count seconds when above threshold limit
49
gdouble time_below; // Internal value. Count seconds when under threshold limit
51
gboolean done; // Internal value. TRUE when timer command has been executed
50
54
GList *parser_parse_actions(gchar *txt);