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)); + } } } }