1 #ifndef KM3NET_AUDIO_CHANNEL_H_
2 #define KM3NET_AUDIO_CHANNEL_H_
13 #include <boost/asio.hpp>
14 #include <boost/bind.hpp>
15 #include <boost/function.hpp>
18 #include "toalib/km3_toa_lib.hpp"
22 typedef boost::shared_ptr<KM3::TOALIB::CTOAFinder::probeSignalT>
pProbe;
26 #define MAX_DUMP_SIZE 4194304
42 void Append(real_type sample);
std::string debug_files_path_
void Set_test(uint32_t id)
static const int DEBUG_LEVEL
void Analysis(ToA_Packet packet, real_type *buffer, uint32_t length)
KM3::TOALIB::CTOAFinder finder_
callback_send_toa send_toa_
void Append(real_type sample)
std::vector< std::size_t > probes_id_
void Check_time(Audio_Header header)
void Add_probe(pProbe probe, std::size_t id, std::size_t threshold)
virtual ~KM3NeT_Audio_Channel()
std::map< std::size_t, std::size_t > thresholds_
KM3NeT_Audio_Channel(boost::asio::io_service &io_service, callback_send_toa callback, uint32_t id, std::string &debug_path, uint32_t window=STD_WINDOW, uint32_t overlap=STD_OVERLAP)
void Open_test_file(uint32_t id, uint8_t ch)
boost::shared_ptr< KM3::TOALIB::CTOAFinder::probeSignalT > pProbe
std::pair< std::size_t, std::size_t > threshold_entry
void Check_time(Audio_Header header)
boost::function< void(ToA_Packet packet)> callback_send_toa
boost::asio::io_service::strand strand_