gst-indent
[platform/upstream/gst-plugins-good.git] / ext / mikmod / gstmikmod.h
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
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., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20
21 #ifndef __GST_MIKMOD_H__
22 #define __GST_MIKMOD_H__
23
24 #include <mikmod.h>
25 #include <gst/gst.h>
26
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif                          /* __cplusplus */
31
32
33 #define GST_TYPE_MIKMOD \
34   (gst_mikmod_get_type())
35
36 #define GST_MIKMOD(obj) \
37   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MIKMOD,GstMikMod))
38 #define GST_MIKMOD_CLASS(klass) \
39   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ULAW,GstMikMod))
40 #define GST_IS_MIKMOD(obj) \
41   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MIKMOD))
42 #define GST_IS_MIKMOD_CLASS(obj) \
43   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MIKMOD))
44
45   struct _GstMikMod
46   {
47     GstElement element;
48     GstPad *sinkpad, *srcpad;
49     GstBuffer *Buffer;
50
51     gchar *songname;
52     gchar *modtype;
53     gint musicvolume;
54     gint pansep;
55     gint reverb;
56     gint sndfxvolume;
57     gint volume;
58     gint mixfreq;
59     gint mode;
60     gboolean interp;
61     gboolean reverse;
62     gboolean surround;
63     gboolean _16bit;
64     gboolean hqmixer;
65     gboolean soft_music;
66     gboolean soft_sndfx;
67     gboolean stereo;
68
69     gboolean initialized;
70   };
71
72   struct _GstMikModClass
73   {
74     GstElementClass parent_class;
75   };
76
77   typedef struct _GstMikMod GstMikMod;
78   typedef struct _GstMikModClass GstMikModClass;
79
80   extern MODULE *module;
81   extern MREADER *reader;
82   extern GstPad *srcpad;
83   extern GstClockTime timestamp;
84   extern int need_sync;
85
86   GType gst_mikmod_get_type (void);
87
88 /* symbols for mikmod_reader.h */
89   struct _GST_READER
90   {
91     MREADER core;
92     GstMikMod *mik;
93     guint64 offset;
94     gshort eof;
95   };
96
97
98   typedef struct _GST_READER GST_READER;
99
100
101   MREADER *GST_READER_new (GstMikMod * mik);
102
103 /* symbols for drv_gst.c */
104   extern MDRIVER drv_gst;
105
106 #ifdef __cplusplus
107 }
108 #endif                          /* __cplusplus */
109
110 #endif                          /* __GST_MIKMOD_H__ */