Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 111:230243c2b520
prev106:9048bac046c3
next144:7f0714e89aaa
author nkeynes
date Thu Mar 16 12:41:59 2006 +0000 (15 years ago)
permissions -rw-r--r--
last change Handle driver-unable-to-init case
file annotate diff log raw
1.1 --- a/src/main.c Tue Mar 14 12:45:53 2006 +0000
1.2 +++ b/src/main.c Thu Mar 16 12:41:59 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: main.c,v 1.15 2006-03-14 12:45:50 nkeynes Exp $
1.6 + * $Id: main.c,v 1.16 2006-03-16 12:41:59 nkeynes Exp $
1.7 *
1.8 * Main program, initializes dreamcast and gui, then passes control off to
1.9 * the gtk main loop (currently).
1.10 @@ -116,7 +116,9 @@
1.11
1.12 for( i=0; audio_driver_list[i] != NULL; i++ ) {
1.13 if( strcasecmp( audio_driver_list[i]->name, audio_driver_name ) == 0 ) {
1.14 - audio_set_driver( audio_driver_list[i], 44100, AUDIO_FMT_16ST );
1.15 + if( audio_set_driver( audio_driver_list[i], 44100, AUDIO_FMT_16ST ) == FALSE ) {
1.16 + audio_set_driver( &audio_null_driver, 44100, AUDIO_FMT_16ST );
1.17 + }
1.18 break;
1.19 }
1.20
.