aboutsummaryrefslogtreecommitdiff
path: root/utils/vlc_codec/libadlmidi.c
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-06-03 18:36:22 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-06-03 18:36:22 +0300
commit64254a351652011b00f700b27863ec6659205273 (patch)
tree5574d7cdf194fbd81ff700e2d8daa3988d141b7f /utils/vlc_codec/libadlmidi.c
parente3cad2f46925ac0b9ae303bea68a5fe508e78bc9 (diff)
downloadlibADLMIDI-64254a351652011b00f700b27863ec6659205273.tar.gz
libADLMIDI-64254a351652011b00f700b27863ec6659205273.tar.bz2
libADLMIDI-64254a351652011b00f700b27863ec6659205273.zip
Fixed warnings in the utils
Diffstat (limited to 'utils/vlc_codec/libadlmidi.c')
-rw-r--r--utils/vlc_codec/libadlmidi.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/utils/vlc_codec/libadlmidi.c b/utils/vlc_codec/libadlmidi.c
index eb20227..aedd718 100644
--- a/utils/vlc_codec/libadlmidi.c
+++ b/utils/vlc_codec/libadlmidi.c
@@ -18,10 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
-//#ifdef HAVE_CONFIG_H
-//# include "config.h"
-//#endif
-
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_codec.h>
@@ -44,18 +40,20 @@
#define SOUNDFONT_LONGTEXT N_( \
"Custom bank file to use for software synthesis." )
-//#define CHORUS_TEXT N_("Chorus")
+#if 0 /* Old code */
+#define CHORUS_TEXT N_("Chorus")
-//#define GAIN_TEXT N_("Synthesis gain")
-//#define GAIN_LONGTEXT N_("This gain is applied to synthesis output. " \
-// "High values may cause saturation when many notes are played at a time." )
+#define GAIN_TEXT N_("Synthesis gain")
+#define GAIN_LONGTEXT N_("This gain is applied to synthesis output. " \
+ "High values may cause saturation when many notes are played at a time." )
-//#define POLYPHONY_TEXT N_("Polyphony")
-//#define POLYPHONY_LONGTEXT N_( \
-// "The polyphony defines how many voices can be played at a time. " \
-// "Larger values require more processing power.")
+#define POLYPHONY_TEXT N_("Polyphony")
+#define POLYPHONY_LONGTEXT N_( \
+ "The polyphony defines how many voices can be played at a time. " \
+ "Larger values require more processing power.")
-//#define REVERB_TEXT N_("Reverb")
+#define REVERB_TEXT N_("Reverb")
+#endif
#define SAMPLE_RATE_TEXT N_("Sample rate")
@@ -179,8 +177,11 @@ static void Close (vlc_object_t *p_this)
static void Flush (decoder_t *p_dec)
{
decoder_sys_t *p_sys = p_dec->p_sys;
-
+#if (LIBVLC_VERSION_MAJOR >= 3)
date_Set (&p_sys->end_date, VLC_TS_INVALID);
+#else
+ date_Set (&p_sys->end_date, 0);
+#endif
adl_panic(p_sys->synth);
}
@@ -225,8 +226,7 @@ static block_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block)
return VLCDEC_SUCCESS;
}
#else
- date_Set (&p_sys->end_date, 0);
- adl_panic(p_sys->synth);
+ Flush (p_dec);
#endif
}