Mercurial > hg > aimc
diff src/Modules/SAI/ModuleSAI.cc @ 6:8c859ef1fb75
- Added a basic main function to test that all the can be fitted together
- Fixed an initialisation bug in ModuleFileInput that left the buffer size at zero
- Added proper description strings to the input and output modules
- Fixed an out-by-a-factor-of-1000 bug in the SAI memory allocation (oops)
- Added LOG_INFO_NN fucnction to log without a newline. Useful for the ASCII art module chain in aimc.cc.
author | tomwalters |
---|---|
date | Thu, 18 Feb 2010 19:35:07 +0000 |
parents | 3c782dec2fc0 |
children | fcbf85ce59fb |
line wrap: on
line diff
--- a/src/Modules/SAI/ModuleSAI.cc Thu Feb 18 16:55:40 2010 +0000 +++ b/src/Modules/SAI/ModuleSAI.cc Thu Feb 18 19:35:07 2010 +0000 @@ -57,7 +57,8 @@ // The SAI output bank must be as long as the SAI's Maximum delay. // One sample is added to the SAI buffer length to account for the // zero-lag point - int sai_buffer_length = 1 + floor(input.sample_rate() * max_delay_ms_); + int sai_buffer_length = 1 + floor(input.sample_rate() * max_delay_ms_ + / 1000.0f); channel_count_ = input.channel_count(); // Make an output SignalBank with the same number of channels and centre