From 20fe4ac8d00c9c388ecadb0df8e900915a87e305 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 1 Sep 2015 17:16:48 -0700 Subject: [PATCH] sine example: display connected backend --- example/sio_sine.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/sio_sine.c b/example/sio_sine.c index 7eb4707..cca9b19 100644 --- a/example/sio_sine.c +++ b/example/sio_sine.c @@ -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));