- disable jack dependency, it doesn't work (noticed by Jan Stary) - add a note explaining that you need a soundfount and point people at the generaluser-gs-soundfont package
55 lines
2.2 KiB
Plaintext
55 lines
2.2 KiB
Plaintext
$OpenBSD: patch-src_drivers_fluid_adriver_c,v 1.1 2013/03/29 12:37:43 sthen Exp $
|
|
--- src/drivers/fluid_adriver.c.orig Thu Aug 16 05:01:13 2012
|
|
+++ src/drivers/fluid_adriver.c Sun Mar 24 23:55:55 2013
|
|
@@ -64,6 +64,15 @@ int delete_fluid_oss_audio_driver(fluid_audio_driver_t
|
|
void fluid_oss_audio_driver_settings(fluid_settings_t* settings);
|
|
#endif
|
|
|
|
+#if SNDIO_SUPPORT
|
|
+fluid_audio_driver_t* new_fluid_sndio_audio_driver(fluid_settings_t* settings,
|
|
+ fluid_synth_t* synth);
|
|
+fluid_audio_driver_t* new_fluid_sndio_audio_driver2(fluid_settings_t* settings,
|
|
+ fluid_audio_func_t func, void* data);
|
|
+int delete_fluid_sndio_audio_driver(fluid_audio_driver_t* p);
|
|
+void fluid_sndio_audio_driver_settings(fluid_settings_t* settings);
|
|
+#endif
|
|
+
|
|
#if COREAUDIO_SUPPORT
|
|
fluid_audio_driver_t* new_fluid_core_audio_driver(fluid_settings_t* settings,
|
|
fluid_synth_t* synth);
|
|
@@ -120,6 +129,13 @@ int delete_fluid_file_audio_driver(fluid_audio_driver_
|
|
|
|
/* Available audio drivers, listed in order of preference */
|
|
fluid_audriver_definition_t fluid_audio_drivers[] = {
|
|
+#if SNDIO_SUPPORT
|
|
+ { "sndio",
|
|
+ new_fluid_sndio_audio_driver,
|
|
+ new_fluid_sndio_audio_driver2,
|
|
+ delete_fluid_sndio_audio_driver,
|
|
+ fluid_sndio_audio_driver_settings },
|
|
+#endif
|
|
#if JACK_SUPPORT
|
|
{ "jack",
|
|
new_fluid_jack_audio_driver,
|
|
@@ -223,7 +239,9 @@ void fluid_audio_driver_settings(fluid_settings_t* set
|
|
FLUID_DEFAULT_AUDIO_RT_PRIO, 0, 99, 0, NULL, NULL);
|
|
|
|
/* Set the default driver */
|
|
-#if JACK_SUPPORT
|
|
+#if SNDIO_SUPPORT
|
|
+ fluid_settings_register_str(settings, "audio.driver", "sndio", 0, NULL, NULL);
|
|
+#elif JACK_SUPPORT
|
|
fluid_settings_register_str(settings, "audio.driver", "jack", 0, NULL, NULL);
|
|
#elif ALSA_SUPPORT
|
|
fluid_settings_register_str(settings, "audio.driver", "alsa", 0, NULL, NULL);
|
|
@@ -256,6 +274,9 @@ void fluid_audio_driver_settings(fluid_settings_t* set
|
|
#endif
|
|
#if OSS_SUPPORT
|
|
fluid_settings_add_option(settings, "audio.driver", "oss");
|
|
+#endif
|
|
+#if SNDIO_SUPPORT
|
|
+ fluid_settings_add_option(settings, "audio.driver", "sndio");
|
|
#endif
|
|
#if COREAUDIO_SUPPORT
|
|
fluid_settings_add_option(settings, "audio.driver", "coreaudio");
|