Mercurial > hg > aimc
comparison src/Main/aimc.cc @ 52:e914b02b31b0
- Hacks to get a basic AIM-C compiling on windows
author | tomwalters |
---|---|
date | Thu, 22 Jul 2010 04:24:55 +0000 |
parents | c8024714e13e |
children | ce97ae23c66b |
comparison
equal
deleted
inserted
replaced
51:978fb645eb0f | 52:e914b02b31b0 |
---|---|
37 | 37 |
38 int buffer_length = 480; | 38 int buffer_length = 480; |
39 params.SetInt("input.buffersize", buffer_length); | 39 params.SetInt("input.buffersize", buffer_length); |
40 | 40 |
41 aimc::ModuleFileInput input(¶ms); | 41 aimc::ModuleFileInput input(¶ms); |
42 aimc::ModuleGammatone bmm(¶ms); | 42 aimc::ModulePZFC bmm(¶ms); |
43 aimc::ModuleHCL nap(¶ms); | |
44 aimc::ModuleLocalMax strobes(¶ms); | |
45 aimc::ModuleSAI sai(¶ms); | |
46 aimc::FileOutputAIMC output(¶ms); | 43 aimc::FileOutputAIMC output(¶ms); |
47 | 44 |
48 std::string parameters_string = params.WriteString(); | 45 std::string parameters_string = params.WriteString(); |
49 printf("%s", parameters_string.c_str()); | 46 printf("%s", parameters_string.c_str()); |
50 | 47 |
51 input.AddTarget(&bmm); | 48 input.AddTarget(&bmm); |
52 bmm.AddTarget(&nap); | 49 bmm.AddTarget(&output); |
53 nap.AddTarget(&strobes); | |
54 strobes.AddTarget(&sai); | |
55 sai.AddTarget(&output); | |
56 | 50 |
57 output.OpenFile("test_output.aimc", params.GetFloat("sai.frame_period_ms")); | 51 output.OpenFile("test_output.aimc", params.GetFloat("sai.frame_period_ms")); |
58 if (input.LoadFile("test.wav")) { | 52 if (input.LoadFile("test.wav")) { |
59 input.Process(); | 53 input.Process(); |
60 } else { | 54 } else { |