1 /* GStreamer 2 * Copyright (C) <2017> Carlos Rafael Giani <dv at pseudoterminal dot org> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Library General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Library General Public License for more details. 13 * 14 * You should have received a copy of the GNU Library General Public 15 * License along with this library; if not, write to the 16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 17 * Boston, MA 02110-1301, USA. 18 */ 19 20 21 #ifndef __GST_WILDMIDI_DEC_H__ 22 #define __GST_WILDMIDI_DEC_H__ 23 24 25 #include <gst/gst.h> 26 #include "gst/audio/gstnonstreamaudiodecoder.h" 27 #include <wildmidi_lib.h> 28 29 30 G_BEGIN_DECLS 31 32 33 typedef struct _GstWildmidiDec GstWildmidiDec; 34 typedef struct _GstWildmidiDecClass GstWildmidiDecClass; 35 36 37 #define GST_TYPE_WILDMIDI_DEC (gst_wildmidi_dec_get_type()) 38 #define GST_WILDMIDI_DEC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_WILDMIDI_DEC, GstWildmidiDec)) 39 #define GST_WILDMIDI_DEC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_WILDMIDI_DEC, GstWildmidiDecClass)) 40 #define GST_IS_WILDMIDI_DEC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_WILDMIDI_DEC)) 41 #define GST_IS_WILDMIDI_DEC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_WILDMIDI_DEC)) 42 43 44 struct _GstWildmidiDec 45 { 46 GstNonstreamAudioDecoder parent; 47 48 midi *song; 49 50 gboolean log_volume_scale; 51 gboolean enhanced_resampling; 52 gboolean reverb; 53 guint output_buffer_size; 54 }; 55 56 57 struct _GstWildmidiDecClass 58 { 59 GstNonstreamAudioDecoderClass parent_class; 60 }; 61 62 63 GType gst_wildmidi_dec_get_type (void); 64 65 GST_ELEMENT_REGISTER_DECLARE (wildmididec); 66 67 G_END_DECLS 68 69 70 #endif /* __GST_WILDMIDI_DEC_H__ */ 71