Wayverb
environment.h
1 #pragma once
2 
3 namespace wayverb {
4 namespace core {
5 
6 struct environment final {
7  double speed_of_sound{340.0};
8  double acoustic_impedance{400.0};
9 };
10 
11 constexpr auto get_ambient_density(const environment& s) {
12  return s.acoustic_impedance / s.speed_of_sound;
13 }
14 
15 } // namespace core
16 } // namespace wayverb
Definition: traits.cpp:2
Definition: environment.h:6
Definition: capsule_base.h:9