Mercurial > hg > aimc
comparison trunk/src/Modules/SAI/ModuleSAI.cc @ 596:b58758854b88
- Allow the SAI to use double-buffering, as was originally intended.
author | tomwalters@google.com |
---|---|
date | Wed, 06 Feb 2013 15:41:24 +0000 |
parents | 733a11a65f3d |
children |
comparison
equal
deleted
inserted
replaced
590:057946a60b91 | 596:b58758854b88 |
---|---|
206 // Adjust the weight acording to the number of samples until the | 206 // Adjust the weight acording to the number of samples until the |
207 // next output frame | 207 // next output frame |
208 sig *= decay_factor; | 208 sig *= decay_factor; |
209 | 209 |
210 // Update the temporary SAI buffer | 210 // Update the temporary SAI buffer |
211 output_.set_sample(ch, delay, output_.sample(ch, delay) + sig); | 211 sai_temp_.set_sample(ch, delay, sai_temp_.sample(ch, delay) + sig); |
212 } | 212 } |
213 } | 213 } |
214 | 214 |
215 next_strobes_[ch] = next_strobe_index; | 215 next_strobes_[ch] = next_strobe_index; |
216 } // End loop over channels | 216 } // End loop over channels |