Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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{
21public:
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
32private:
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_ */
#define STD_WINDOW
#define STD_OVERLAP
KM3NeT_Audio_Data(uint32_t window=STD_WINDOW, uint32_t overlap=STD_OVERLAP)
void Check_time(Audio_Header header)
real_type * Get_window(ToA_Packet *packet)
static const int DEBUG_LEVEL
bool Append(real_type sample)