Codebase list squeezelite / b03b568
fix problem opening ALSA device if 44100 is not supported Adrian Smith 9 years ago
2 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
386386 }
387387 }
388388 if (!output.default_sample_rate) {
389 output.default_sample_rate = rates[0];
389 output.default_sample_rate = output.supported_rates[0];
390390 }
391391
392392 output.current_sample_rate = output.default_sample_rate;
180180 LOG_ERROR("device name too long: %s", device);
181181 return -1;
182182 }
183
184 LOG_INFO("opening device at: %u", sample_rate);
183185
184186 bool retry;
185187 do {