SAL
A C++ library for spatial audio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
wavhandler.h
Go to the documentation of this file.
1 /*
2  wavhandler.h
3  Spatial Audio Library (SAL)
4  Copyright (c) 2011, Enzo De Sena
5  All rights reserved.
6 
7  Authors: Enzo De Sena, enzodesena@gmail.com
8 
9  */
10 
11 #ifndef SAL_WAVHANDLER_H
12 #define SAL_WAVHANDLER_H
13 
14 
15 #include "saltypes.h"
16 #include <vector>
17 #include <iostream>
18 #include "salconstants.h"
19 
20 namespace sal {
21 
22 class WavHandler {
23 public:
24 static std::vector<Signal> Read(const std::string file_name);
25 
26 static Time ReadSamplingFrequency(const std::string file_name);
27 
28 
29 static void Write(const std::vector<Signal>& signals,
30  const Time sampling_frequency,
31  const std::string file_name);
32 
33 static void Write(const StereoSignal& stereo_signals,
34  const Time sampling_frequency,
35  std::string file_name);
36 };
37 
38 } // namespace sal
39 
40 #endif