Print informative error messages for sherpa-onnx-alsa on errors. (#486)

This commit is contained in:
Fangjun Kuang
2023-12-15 11:10:39 +08:00
committed by GitHub
parent 33c03f78b2
commit ad72e7afc3
2 changed files with 19 additions and 1 deletions

View File

@@ -104,7 +104,7 @@ as the device_name.
int32_t segment_index = 0;
while (!stop) {
const std::vector<float> samples = alsa.Read(chunk);
const std::vector<float> &samples = alsa.Read(chunk);
stream->AcceptWaveform(expected_sample_rate, samples.data(),
samples.size());