ncmixer

ncurses audio mixer for DJ'ing
git clone git://git.2f30.org/ncmixer
Log | Files | Refs | README | LICENSE

commit 0e8a8c2fdaafd53d147dc9bc74f11266033a77e8
parent d060ee88e4d1d995d472bcd533d4725730023579
Author: sin <sin@2f30.org>
Date:   Fri,  3 Jun 2016 11:23:53 +0100

Exit if initial audio_open() fails

Diffstat:
Mncmixer.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ncmixer.c b/ncmixer.c @@ -424,11 +424,13 @@ curses_exit(void) int main(void) { - curses_init(); sio_hdl_master = audio_open(SIO_DEVANY); + if (sio_hdl_master == NULL) + return 1; + curses_init(); draw(); loop(); - audio_close(&sio_hdl_master); curses_exit(); + audio_close(&sio_hdl_master); return 0; }