Jpp  15.0.5
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KM3NeT_Audio_Data.h
Go to the documentation of this file.
1 #ifndef KM3NET_AUDIO_DATA_H_
2 #define KM3NET_AUDIO_DATA_H_
3 
4 #include <stdlib.h>
5 
7 #include "toalib/km3_toa_lib.hpp"
8 
9 #define STD_WINDOW 262144
10 #define STD_OVERLAP 15625
11 
12 
13 /**
14  * \author fsimeone
15  */
16 
17 //#define DEBUG_KM3NET_AUDIO_DATA
18 
20 {
21 public:
22  static const int DEBUG_LEVEL=2;
23 
24  KM3NeT_Audio_Data(uint32_t window=STD_WINDOW,uint32_t overlap=STD_OVERLAP);
25  virtual ~KM3NeT_Audio_Data();
26 
27  void Check_time(Audio_Header header);
28  bool Append(real_type sample);
29  real_type* Get_window(ToA_Packet* packet);
30  uint32_t Get_size() { return window_; };
31 
32 private:
35  uint32_t offset_;
36  uint32_t window_;
37  uint32_t overlap_;
38  uint32_t bound_;
39  uint32_t write_;
40  real_type* data_;
41 };
42 
43 #endif /* KM3NET_AUDIO_DATA_H_ */
bool Append(real_type sample)
Audio_Header header_
#define STD_OVERLAP
void Check_time(Audio_Header header)
real_type * Get_window(ToA_Packet *packet)
KM3NeT_Audio_Data(uint32_t window=STD_WINDOW, uint32_t overlap=STD_OVERLAP)
static const int DEBUG_LEVEL
bool overlap(const JRange< T, JComparator_t > &first, const JRange< T, JComparator_t > &second)
Test overlap between ranges.
Definition: JRange.hh:663
#define STD_WINDOW
virtual ~KM3NeT_Audio_Data()