b61b5670a7
- use sndio for audio, kill esd flavor - various cleanup ok MAINTAINER
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
$OpenBSD: patch-app_main_c,v 1.3 2009/12/19 22:59:27 jakemsr Exp $
|
|
--- app/main.c.orig Sat Feb 25 05:02:27 2006
|
|
+++ app/main.c Fri Dec 18 19:19:12 2009
|
|
@@ -48,6 +48,7 @@
|
|
XM *xm = NULL;
|
|
int pipea[2], pipeb[2];
|
|
|
|
+#if 0
|
|
static void
|
|
sigsegv_handler (int parameter)
|
|
{
|
|
@@ -59,6 +60,7 @@ sigsegv_handler (int parameter)
|
|
exit(1);
|
|
}
|
|
}
|
|
+#endif
|
|
|
|
int
|
|
main (int argc,
|
|
@@ -87,6 +89,9 @@ main (int argc,
|
|
#ifdef DRIVER_SUN
|
|
driver_out_sun, driver_in_sun,
|
|
#endif
|
|
+#ifdef DRIVER_SNDIO
|
|
+ driver_out_sndio, driver_in_sndio,
|
|
+#endif
|
|
#ifdef DRIVER_SDL
|
|
driver_out_sdl,
|
|
#endif
|
|
@@ -181,6 +186,13 @@ main (int argc,
|
|
&driver_in_sun);
|
|
#endif
|
|
|
|
+#ifdef DRIVER_SNDIO
|
|
+ drivers[DRIVER_OUTPUT] = g_list_append(drivers[DRIVER_OUTPUT],
|
|
+ &driver_out_sndio);
|
|
+ drivers[DRIVER_INPUT] = g_list_append(drivers[DRIVER_INPUT],
|
|
+ &driver_in_sndio);
|
|
+#endif
|
|
+
|
|
#ifdef _WIN32
|
|
drivers[DRIVER_OUTPUT] = g_list_append(drivers[DRIVER_OUTPUT],
|
|
&driver_out_dsound);
|
|
@@ -243,7 +255,7 @@ main (int argc,
|
|
midi_init();
|
|
#endif
|
|
|
|
- signal(SIGSEGV, sigsegv_handler);
|
|
+ //signal(SIGSEGV, sigsegv_handler);
|
|
|
|
gtk_main();
|
|
|