Split StimulusProducer=>StimulusBuffer+StimulusProducer
We're getting ready for the last mile of the StimulusBuffer API and the proto-completion of the LivoxGen1 StimBuffApi.
This commit is contained in:
@@ -170,6 +170,7 @@ public:
|
||||
|
||||
// Parse history buffer duration from quale-iface-api-params
|
||||
int histbuffMs = 30000; // Default: 30000ms (30 seconds)
|
||||
(void)histbuffMs;
|
||||
const std::vector<std::string> histbuffParamNames = {
|
||||
"history-buffer-duration-ms",
|
||||
"hist-buff-duration-ms",
|
||||
@@ -194,10 +195,10 @@ public:
|
||||
}
|
||||
|
||||
// Create and add PcloudDataProducer to collection now that device is ready
|
||||
StimulusProducer::PcloudFormatDesc formatDesc;
|
||||
formatDesc.format = StimulusProducer::PcloudFormatDesc::Format::XYZI;
|
||||
PcloudDataProducer::PcloudFormatDesc formatDesc;
|
||||
formatDesc.format = PcloudDataProducer::PcloudFormatDesc::Format::XYZI;
|
||||
auto pcloudDataProducer = std::make_shared<PcloudDataProducer>(
|
||||
context->spec, context->deviceTmp, formatDesc, histbuffMs, 30);
|
||||
context->spec, context->deviceTmp, formatDesc, 30);
|
||||
|
||||
context->stimProducer = pcloudDataProducer;
|
||||
context->deviceTmp->nAttachedStimBuffs++;
|
||||
|
||||
Reference in New Issue
Block a user