2
* Copyright (C) 2007 Sebastien Moutte <sebastien@moutte.net>
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Library General Public License for more details.
16
* You should have received a copy of the GNU Library General Public
17
* License along with this library; if not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
23
#ifndef __GST_DSHOWAUDIOSRC_H__
24
#define __GST_DSHOWAUDIOSRC_H__
27
#include <gst/audio/gstaudiosrc.h>
28
#include <gst/interfaces/propertyprobe.h>
30
#include "gstdshowsrcwrapper.h"
33
#define GST_TYPE_DSHOWAUDIOSRC (gst_dshowaudiosrc_get_type())
34
#define GST_DSHOWAUDIOSRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DSHOWAUDIOSRC,GstDshowAudioSrc))
35
#define GST_DSHOWAUDIOSRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DSHOWAUDIOSRC,GstDshowAudioSrcClass))
36
#define GST_IS_DSHOWAUDIOSRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DSHOWAUDIOSRC))
37
#define GST_IS_DSHOWAUDIOSRC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DSHOWAUDIOSRC))
38
typedef struct _GstDshowAudioSrc GstDshowAudioSrc;
39
typedef struct _GstDshowAudioSrcClass GstDshowAudioSrcClass;
41
struct _GstDshowAudioSrc
45
/* device dshow reference (generally classid/name) */
48
/* device friendly name */
51
/* list of caps created from the list of supported media types of the dshow capture filter */
54
/* list of dshow media types filter's pins mediatypes */
55
GList *pins_mediatypes;
57
/* dshow audio capture filter */
58
IBaseFilter *audio_cap_filter;
60
/* dshow fakesink filter */
61
IBaseFilter *dshow_fakesink;
63
/* graph manager interfaces */
64
IMediaFilter *media_filter;
65
IFilterGraph *filter_graph;
74
struct _GstDshowAudioSrcClass
76
GstAudioSrcClass parent_class;
79
GType gst_dshowaudiosrc_get_type (void);
82
#endif /* __GST_DSHOWAUDIOSRC_H__ */