From 3229899a34e2730829f76eda2092d42579a63240 Mon Sep 17 00:00:00 2001 From: derselbst Date: Tue, 21 Dec 2021 13:01:58 +0100 Subject: [PATCH] Deprecate OSS driver --- src/drivers/fluid_oss.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/drivers/fluid_oss.c b/src/drivers/fluid_oss.c index 0cd359d5..9f27735d 100644 --- a/src/drivers/fluid_oss.c +++ b/src/drivers/fluid_oss.c @@ -123,6 +123,17 @@ new_fluid_oss_audio_driver(fluid_settings_t *settings, fluid_synth_t *synth) char *devname = NULL; int format; + FLUID_LOG(FLUID_WARN, + "\n\n" + "================= OSS audio driver has been deprecated! ==================\n" + "You're using the OSS driver. This driver is old, unmaintained and believed\n" + "to be unused. If you still need it, pls. let us know by posting to our\n" + "mailing list at fluid-dev@nongnu.org - otherwise this driver might be removed\n" + "in a future release of FluidSynth!\n" + "================= OSS audio driver has been deprecated! ==================\n" + "\n" + ); + dev = FLUID_NEW(fluid_oss_audio_driver_t); if(dev == NULL) @@ -296,6 +307,17 @@ new_fluid_oss_audio_driver2(fluid_settings_t *settings, fluid_audio_func_t func, int realtime_prio = 0; int format; + FLUID_LOG(FLUID_WARN, + "\n\n" + "================= OSS audio driver has been deprecated! ==================\n" + "You're using the OSS driver. This driver is old, unmaintained and believed\n" + "to be unused. If you still need it, pls. let us know by posting to our\n" + "mailing list at fluid-dev@nongnu.org - otherwise this driver might be removed\n" + "in a future release of FluidSynth!\n" + "================= OSS audio driver has been deprecated! ==================\n" + "\n" + ); + dev = FLUID_NEW(fluid_oss_audio_driver_t); if(dev == NULL) @@ -607,6 +629,17 @@ new_fluid_oss_midi_driver(fluid_settings_t *settings, int realtime_prio = 0; char *device = NULL; + FLUID_LOG(FLUID_WARN, + "\n\n" + "================= OSS MIDI driver has been deprecated! ==================\n" + "You're using the OSS driver. This driver is old, unmaintained and believed\n" + "to be unused. If you still need it, pls. let us know by posting to our\n" + "mailing list at fluid-dev@nongnu.org - otherwise this driver might be removed\n" + "in a future release of FluidSynth!\n" + "================= OSS MIDI driver has been deprecated! ==================\n" + "\n" + ); + /* not much use doing anything */ if(handler == NULL) {