sine example: display connected backend

This commit is contained in:
Andrew Kelley 2015-09-01 17:16:48 -07:00
parent 760aee2e54
commit 20fe4ac8d0

View file

@ -159,6 +159,8 @@ int main(int argc, char **argv) {
return 1;
}
fprintf(stderr, "Backend: %s\n", soundio_backend_name(soundio->current_backend));
soundio_flush_events(soundio);
int selected_device_index = -1;
@ -186,12 +188,12 @@ int main(int argc, char **argv) {
return 1;
}
fprintf(stderr, "Output device: %s\n", device->name);
fprintf(stderr,
"'p\\n' - pause\n"
"'u\\n' - unpause\n"
"'c\\n' - clear buffer\n"
"'q\\n' - quit\n");
fprintf(stderr, "Output device: %s\n", device->name);
if (device->probe_error) {
fprintf(stderr, "Cannot probe device: %s\n", soundio_strerror(device->probe_error));