Sorry for the late reply. This is my CustomRecorder.cpp
#include "CustomRecorder.h"
CustomRecorder::CustomRecorder()
{
}
bool CustomRecorder::onStart() {
setProcessingInterval(sf::milliseconds(10));
return true;
}
bool CustomRecorder::onProcessSamples(const sf::Int16 *samples, std::size_t sampleCount) {
cout << sampleCount << endl;
return true;
}
void CustomRecorder::onStop() {
}
CustomRecorder::~CustomRecorder()
{
stop();
}
The samplesRate is 4048 in this examples, and this i my samples count for at curtain area of time:
47
47
47
47
47
47
47
47
47
47
47
94
94
47
47
47
47
47
47
47
47