Stream samples **********/
| 167 | |
| 168 | /********** Stream samples **********/ |
| 169 | bool 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 | |
| 180 | void OPNAController::getOutputHistory(int16_t* container) |
| 181 | { |