Mercurial > hg > aimc
comparison src/Modules/Input/ModuleFileInput.cc @ 144:f8ace1ee8782
- Support for training on random SNRs
author | tom@acousticscale.org |
---|---|
date | Sun, 07 Nov 2010 07:38:20 +0000 |
parents | 0c492eada814 |
children | 9425901c60a6 |
comparison
equal
deleted
inserted
replaced
143:a915f8e28cad | 144:f8ace1ee8782 |
---|---|
111 output_.set_sample(c, i, buffer[counter]); | 111 output_.set_sample(c, i, buffer[counter]); |
112 ++counter; | 112 ++counter; |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 // If the number of saples read is less than the buffer length, the end | 116 // If the number of samples read is less than the buffer length, the end |
117 // of the file has been reached. | 117 // of the file has been reached. |
118 if (read < buffer_length_) { | 118 if (read < buffer_length_) { |
119 // Zero samples at end | 119 // Zero samples at end |
120 for (int c = 0; c < audio_channels_; ++c) { | 120 for (int c = 0; c < audio_channels_; ++c) { |
121 for (int i = read; i < buffer_length_; ++i) { | 121 for (int i = read; i < buffer_length_; ++i) { |