Hello.
I’m trying to figure out the code with the microphone recording example.
I can’t figure out what the minRecordDelta variable is for if it’s always 0 and recordData will never be less than 0, so the code snippet will never execute.
uint minRecordDelta = 0;
if (recordDelta != 0 && (recordDelta < minRecordDelta))
{
minRecordDelta = recordDelta; // Smallest driver granularity seen so far
adjustLatency = (recordDelta <= desiredLatency) ? desiredLatency : recordDelta; // Adjust our latency if driver granularity is high
}
Thanks.