11 std::vector<float> matchAudio;
14 mutable std::vector<uint8_t> audioData;
17 mutable std::vector<float> fftwIn;
18 mutable std::vector<std::complex<float>> fftwOut;
19 struct fftwf_deleter {
20 void operator()(fftwf_plan *f)
const noexcept {
21 fftwf_destroy_plan(*f);
25 std::unique_ptr<fftwf_plan, fftwf_deleter> fftwPlan;
28 std::vector<float> matchFrequencies;
29 double matchThreshold;
30 std::atomic<double> matchValue;
32 std::vector<float> findFrequencies(
const std::vector<float> &samples)
const;
35 SoundEvent(
const std::string &filename,
double matchThreshold,
38 uint8_t
value()
const;
Definition: AudioFrameSink.h:14
Definition: SoundEvent.h:9
uint8_t value() const
Definition: SoundEvent.cpp:59