mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Update the deviceio test.
This commit is contained in:
@@ -598,9 +598,15 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
if (c == 'p' || c == 'P') {
|
if (c == 'p' || c == 'P') {
|
||||||
if (ma_device_is_started(&g_State.device)) {
|
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 {
|
} 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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user