2001-12-17 19:03:13 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
* 2000 Wim Taymans <wtay@chello.be>
|
|
|
|
*
|
|
|
|
* gstosssrc.h:
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2005-08-23 09:46:29 +00:00
|
|
|
#ifndef __GST_OSS_SRC_H__
|
|
|
|
#define __GST_OSS_SRC_H__
|
2001-12-17 19:03:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2005-08-23 09:46:29 +00:00
|
|
|
#include <gst/audio/gstaudiosrc.h>
|
|
|
|
|
2005-08-23 13:26:21 +00:00
|
|
|
#include "gstosshelper.h"
|
2005-08-23 13:59:22 +00:00
|
|
|
#include "gstossmixer.h"
|
2001-12-17 19:03:13 +00:00
|
|
|
|
2002-12-07 14:25:18 +00:00
|
|
|
G_BEGIN_DECLS
|
2004-03-15 16:32:54 +00:00
|
|
|
|
2006-06-01 21:07:26 +00:00
|
|
|
#define GST_TYPE_OSS_SRC (gst_oss_src_get_type())
|
|
|
|
#define GST_OSS_SRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OSS_SRC,GstOssSrc))
|
|
|
|
#define GST_OSS_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OSS_SRC,GstOssSrcClass))
|
|
|
|
#define GST_IS_OSS_SRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OSS_SRC))
|
|
|
|
#define GST_IS_OSS_SRC_CLASS(klas) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OSS_SRC))
|
2001-12-17 19:03:13 +00:00
|
|
|
|
|
|
|
typedef struct _GstOssSrc GstOssSrc;
|
|
|
|
typedef struct _GstOssSrcClass GstOssSrcClass;
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstOssSrc {
|
2005-08-23 09:46:29 +00:00
|
|
|
GstAudioSrc src;
|
2001-12-17 19:03:13 +00:00
|
|
|
|
2005-08-23 09:46:29 +00:00
|
|
|
gint fd;
|
2005-12-06 19:44:58 +00:00
|
|
|
gint bytes_per_sample;
|
2003-03-30 21:19:08 +00:00
|
|
|
|
2005-08-23 09:46:29 +00:00
|
|
|
gchar *device;
|
|
|
|
gchar *device_name;
|
2005-08-23 13:59:22 +00:00
|
|
|
|
2008-03-11 23:12:04 +00:00
|
|
|
GstCaps *probed_caps;
|
|
|
|
|
2005-08-23 13:59:22 +00:00
|
|
|
GstOssMixer *mixer;
|
2001-12-17 19:03:13 +00:00
|
|
|
};
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstOssSrcClass {
|
2005-08-23 09:46:29 +00:00
|
|
|
GstAudioSrcClass parent_class;
|
2001-12-17 19:03:13 +00:00
|
|
|
};
|
|
|
|
|
2005-07-10 12:52:20 +00:00
|
|
|
GType gst_oss_src_get_type(void);
|
2001-12-17 19:03:13 +00:00
|
|
|
|
2002-12-07 14:25:18 +00:00
|
|
|
G_END_DECLS
|
2004-03-15 16:32:54 +00:00
|
|
|
|
2005-08-23 09:46:29 +00:00
|
|
|
#endif /* __GST_OSS_SRC_H__ */
|