MCPcopy Create free account
hub / github.com/BambooTracker/BambooTracker / getStreamSamples

Method getStreamSamples

BambooTracker/opna_controller.cpp:169–178  ·  view source on GitHub ↗

Stream samples **********/

Source from the content-addressed store, hash-verified

167
168/********** Stream samples **********/
169bool OPNAController::getStreamSamples(int16_t* container, size_t nSamples)
170{
171 bool result = opna_->mix(container, nSamples);
172 if (!result) return false;
173
174 size_t nHistory = std::min<size_t>(nSamples, bt_defs::OUTPUT_HISTORY_SIZE);
175 fillOutputHistory(&container[2 * (nSamples - nHistory)], nHistory);
176
177 return true;
178}
179
180void OPNAController::getOutputHistory(int16_t* container)
181{

Callers

nothing calls this directly

Calls 1

mixMethod · 0.80

Tested by

no test coverage detected