Wayverb
attenuators.h
1 #pragma once
2 
3 #include "core/serialize/orientation.h"
4 
5 #include "core/attenuator/hrtf.h"
6 #include "core/attenuator/microphone.h"
7 #include "core/attenuator/null.h"
8 
9 template <typename Archive>
10 void wayverb::core::attenuator::hrtf::serialize(Archive& archive) {
11  archive(cereal::make_nvp("orientation", orientation),
12  cereal::make_nvp("channel", channel_),
13  cereal::make_nvp("radius", radius_));
14 }
15 
16 template <typename Archive>
17 void wayverb::core::attenuator::microphone::serialize(Archive& archive) {
18  archive(cereal::make_nvp("orientation", orientation),
19  cereal::make_nvp("shape", shape_));
20 }