inter-view map only if armed track, copy/paste behavior rework
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / meterhistory.h
1 #ifndef __METERHISTORY_H__
2 #define __METERHISTORY_H__
3
4 #include <stdint.h>
5
6 class MeterHistory
7 {
8 public:
9         MeterHistory();
10         ~MeterHistory();
11
12         int size, channels;
13         int *current_peak;
14         int64_t *samples;
15         double **values;
16
17         void init(int chs, int sz);
18         void reset_channel(int ch);
19         void set_peak(int ch, double peak, int64_t pos);
20         double get_peak(int ch, int idx);
21         int get_nearest(int64_t pos, int64_t tolerance);
22 };
23
24 #endif