SAL
A C++ library for spatial audio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
riranalysis.h
Go to the documentation of this file.
1 /*
2  Spatial Audio Library (SAL)
3  Copyright (c) 2013-2018, Enzo De Sena
4  All rights reserved.
5 
6  Authors: Enzo De Sena, enzodesena@gmail.com
7  */
8 
9 #ifndef SDN_EDC_H
10 #define SDN_EDC_H
11 
12 #include <vector>
13 #include "saltypes.h"
14 
15 namespace sal {
16 
17 class RirAnalysis {
18 
19 public:
20  static std::vector<sal::Sample>
21  EnergyDecayCurve(std::vector<sal::Sample> room_impulse_response);
22 
28  static sal::Time Rt60(std::vector<sal::Sample> room_impulse_response,
29  sal::Time sampling_frequency);
30 
36  static sal::Time Rs60(std::vector<sal::Sample> room_impulse_response);
37 
38  static sal::Time Rs60FromEdc(std::vector<sal::Sample> edc);
39 
40  static sal::Time Rs(std::vector<sal::Sample> room_impulse_response,
41  sal::Sample decay_value);
42 
43  static sal::Time RsFromEdc(std::vector<sal::Sample> edc,
44  sal::Sample decay_value);
45 
46  static bool Test();
47 };
48 
49 
50 } // namespace sal
51 
52 
53 #endif