14 #ifndef SAL_SIMULATION_H
15 #define SAL_SIMULATION_H
17 #define DEFAULT_MAX_BUFFER 10
32 std::vector<Source*> sources,
33 const Time sampling_frequency,
37 std::vector<Source*> sources,
38 const Time sampling_frequency,
43 const Time sampling_frequency,
48 const Time sampling_frequency,
51 void Init(std::vector<Microphone*> microphones,
52 std::vector<Source*> sources,
53 const Time sampling_frequency,
56 void Run(std::vector<MonoBuffer*> input_buffers,
57 const Int num_output_samples,
58 std::vector<Buffer*> output_buffers);
72 static Length MinimumDistance(
const std::vector<Microphone*>& microphones,
73 const std::vector<Source*>& sources);
76 static Length MaximumDistance(
const std::vector<Microphone*>& microphones,
77 const std::vector<Source*>& sources);
79 static std::vector<Length>
80 AllDistances(
const std::vector<Microphone*>& microphones,
81 const std::vector<Source*>& sources);
85 std::vector<std::vector<PropagationLine*> > propagation_lines_;
86 std::vector<std::vector<MonoBuffer*> > temp_buffers_;
88 std::vector<Microphone*> microphones_;
89 std::vector<Source*> sources_;
90 Time sampling_frequency_;