| 256 | } |
| 257 | |
| 258 | size_t SpectrumTransformer::CurrentQueueSize() const |
| 259 | { |
| 260 | auto allocSize = mQueue.size(); |
| 261 | auto size = mOutStepCount + allocSize; |
| 262 | if (mLeadingPadding) |
| 263 | size += mStepsPerWindow - 1; |
| 264 | |
| 265 | if (size < allocSize) |
| 266 | return size.as_size_t(); |
| 267 | else |
| 268 | return allocSize; |
| 269 | } |
| 270 | |
| 271 | // Formerly part of EffectNoiseReduction::Worker::ReduceNoise() |
| 272 | void SpectrumTransformer::OutputStep() |
no test coverage detected