comparison src/Modules/Output/FileOutputAIMC.h @ 253:988c8b6f7946

- AIMC format file output
author tom@acousticscale.org
date Thu, 04 Nov 2010 19:48:53 +0000
parents 82e0dc3dfd16
children 087f3b3c36d3
comparison
equal deleted inserted replaced
252:de2b483654ee 253:988c8b6f7946
26 */ 26 */
27 27
28 #ifndef AIMC_MODULES_OUTPUT_AIMC_H_ 28 #ifndef AIMC_MODULES_OUTPUT_AIMC_H_
29 #define AIMC_MODULES_OUTPUT_AIMC_H_ 29 #define AIMC_MODULES_OUTPUT_AIMC_H_
30 30
31 #include <string>
32
31 #include "Support/Module.h" 33 #include "Support/Module.h"
32 #include "Support/SignalBank.h" 34 #include "Support/SignalBank.h"
33 35
34 namespace aimc { 36 namespace aimc {
35 class FileOutputAIMC : public Module { 37 class FileOutputAIMC : public Module {
42 /*! \brief Initialize the output to AIMC. 44 /*! \brief Initialize the output to AIMC.
43 * \param *filename Filename of the ouptut file to be created. 45 * \param *filename Filename of the ouptut file to be created.
44 * If the file exists it will be overwritten 46 * If the file exists it will be overwritten
45 * \return Returns true on success of initialization. 47 * \return Returns true on success of initialization.
46 */ 48 */
47 bool OpenFile(const char *filename, float frame_period_ms); 49 bool OpenFile(string &filename);
48 bool CloseFile(); 50 bool CloseFile();
49 virtual void Process(const SignalBank &input); 51 virtual void Process(const SignalBank &input);
50 private: 52 private:
51 virtual bool InitializeInternal(const SignalBank &input); 53 virtual bool InitializeInternal(const SignalBank &input);
52 virtual void ResetInternal(); 54 virtual void ResetInternal();
67 69
68 int channel_count_; 70 int channel_count_;
69 int buffer_length_; 71 int buffer_length_;
70 float sample_rate_; 72 float sample_rate_;
71 float frame_period_ms_; 73 float frame_period_ms_;
74 string file_suffix_;
72 }; 75 };
73 } // namespace aimc 76 } // namespace aimc
74 77
75 #endif // AIMC_MODULES_OUTPUT_AIMC_H_ 78 #endif // AIMC_MODULES_OUTPUT_AIMC_H_
76 79