From e0ca224b763194519984606d642edc6569abe490 Mon Sep 17 00:00:00 2001 From: mtdxc Date: Sat, 31 May 2025 23:32:35 +0800 Subject: [PATCH] fixed mfc build error (#2267) Co-authored-by: cqm --- sherpa-onnx/csrc/microphone.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sherpa-onnx/csrc/microphone.cc b/sherpa-onnx/csrc/microphone.cc index 2fd71d1e..0f749eda 100644 --- a/sherpa-onnx/csrc/microphone.cc +++ b/sherpa-onnx/csrc/microphone.cc @@ -34,9 +34,9 @@ int Microphone::GetDefaultInputDevice() const { } void Microphone::PrintDevices(int device_index) const { - PaDeviceIndex num_devices = Pa_GetDeviceCount(); + int num_devices = Pa_GetDeviceCount(); fprintf(stderr, "Num devices: %d\n", num_devices); - for (int32_t i = 0; i != num_devices; ++i) { + for (int i = 0; i != num_devices; ++i) { const PaDeviceInfo *info = Pa_GetDeviceInfo(i); fprintf(stderr, " %s %d %s\n", (i == device_index) ? "*" : " ", i, info->name);