When starting a recording, the first aprox. 0.35 sekunds of samples in the soundbuffer are silence. Is this a normal latency? or is there some ways to improve it?
The Attached picture is 1. secound of sound, with the silence at the start.
basics of the code i'm using:
recorder.start(sampleRate);
Sleep(1000);
recorder.stop();
std::vector<int> finalSamples;
for(int i =0; i<recorder.getBuffer().getSampleCount();i++)
{
finaSamples.push_back(recorder.getBuffer().getSamples());
}
and then plotting the values of finalSamples.