// See if we match or are very close to any of the mandatory HDMI sample rates.
const int candidate_sample_rates[] = { 32000, 44100, 48000 };
for (int rate : candidate_sample_rates) {
- if (abs(int(num_samples_per_second) - rate) < 50) {
+ if (abs(int(num_samples_per_second) - rate) <= 100) {
return rate;
}
}