Wayverb
config.h
1 #pragma once
2 
3 #include "utilities/aligned/vector.h"
4 
5 #include <vector>
6 
7 namespace wayverb {
8 namespace waveguide {
9 namespace config {
10 
11 double speed_of_sound(double time_step, double grid_spacing);
12 double time_step(double speed_of_sound, double grid_spacing);
13 double grid_spacing(double speed_of_sound, double time_step);
14 
15 } // namespace config
16 
17 util::aligned::vector<float> adjust_sampling_rate(const float* data,
18  size_t size,
19  double in_sr,
20  double out_sr);
21 
22 template <typename T>
23 auto adjust_sampling_rate(const T& t, double in_sr, double out_sr) {
24  return adjust_sampling_rate(t.data(), t.size(), in_sr, out_sr);
25 }
26 
27 } // namespace waveguide
28 } // namespace wayverb
Definition: capsule_base.h:9