Commit bdf9a555 authored by David Reid's avatar David Reid

Update the deviceio test.

parent 537c4ca3
......@@ -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));
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment