aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spectrogram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/spectrogram.c b/spectrogram.c
index 412d95a..718c5d4 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -379,7 +379,8 @@ main(int argc, char **argv)
pane = init_palette_big(psize);
sio = sio_open(NULL, SIO_REC, 0);
- assert(sio);
+ if (!sio)
+ errx(1, "cannot connect to sound server, is it running?");
sio_initpar(&par);
sio_getpar(sio, &par);