• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  *
3  * gstofa.h
4  *
5  * Copyright (C) 2006 M. Derezynski
6  * Copyright (C) 2008 Eric Buehl
7  * Copyright (C) 2008 Sebastian Dröge <slomo@circular-chaos.org>
8  *
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Library General Public
12  * License as published by the Free Software Foundation; either
13  * version 2 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Library General Public License for more details.
19  *
20  * You should have received a copy of the GNU Library General Public
21  * License along with this library; if not, write to the
22  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
23  * Boston, MA  02110-1301 USA.
24  */
25 
26 #ifndef __GST_OFA_H__
27 #define __GST_OFA_H__
28 
29 #include <gst/gst.h>
30 #include <gst/base/gstadapter.h>
31 #include <gst/audio/gstaudiofilter.h>
32 #include <gst/audio/audio.h>
33 
34 G_BEGIN_DECLS
35 
36 #define GST_TYPE_OFA \
37   (gst_ofa_get_type())
38 #define GST_OFA(obj) \
39   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OFA,GstOFA))
40 #define GST_OFA_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OFA,GstOFAClass))
42 #define GST_IS_OFA(obj) \
43   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OFA))
44 #define GST_IS_OFA_CLASS(klass) \
45   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OFA))
46 
47 #define GST_TAG_OFA_FINGERPRINT "ofa-fingerprint"
48 
49 typedef struct _GstOFA GstOFA;
50 typedef struct _GstOFAClass GstOFAClass;
51 
52 
53 /**
54  * GstOFA:
55  *
56  * Opaque #GstOFA data structure
57  */
58 
59 struct _GstOFA
60 {
61   GstAudioFilter audiofilter;
62 
63   /*< private > */
64 
65   GstAdapter *adapter;
66   char *fingerprint;
67   gboolean record;
68 };
69 
70 struct _GstOFAClass
71 {
72   GstAudioFilterClass audiofilter_class;
73 };
74 
75 GType gst_ofa_get_type (void);
76 
77 G_END_DECLS
78 
79 #endif /* __GST_OFA_H__ */
80