From bdf9a5554b1c6000a97198ddef7c900da322db9c Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 10 Sep 2023 07:26:09 +1000 Subject: [PATCH] Update the deviceio test. --- tests/test_deviceio/ma_test_deviceio.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_deviceio/ma_test_deviceio.c b/tests/test_deviceio/ma_test_deviceio.c index abf10dff..f7b049b6 100644 --- a/tests/test_deviceio/ma_test_deviceio.c +++ b/tests/test_deviceio/ma_test_deviceio.c @@ -598,9 +598,15 @@ int main(int argc, char** argv) } if (c == 'p' || c == 'P') { if (ma_device_is_started(&g_State.device)) { - ma_device_stop(&g_State.device); + result = ma_device_stop(&g_State.device); + if (result != MA_SUCCESS) { + printf("ERROR: Error when stopping the device: %s\n", ma_result_description(result)); + } } else { - ma_device_start(&g_State.device); + result = ma_device_start(&g_State.device); + if (result != MA_SUCCESS) { + printf("ERROR: Error when starting the device: %s\n", ma_result_description(result)); + } } } }