summaryrefslogtreecommitdiffstats
path: root/sys/oss/gstosssink.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-12-07 20:54:47 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-12-07 20:54:47 +0000
commit46820010139599cf0ae77e5e75da04b9672f23bf (patch)
treeb3adc39885400c91dec0cad2a7684a659e7b0e2b /sys/oss/gstosssink.h
parentf5743b63de97d7d5bba29dc769387b42a092cb82 (diff)
More refactoring osssrc has more features now, like query/convert etc
Original commit message from CVS: More refactoring osssrc has more features now, like query/convert etc
Diffstat (limited to 'sys/oss/gstosssink.h')
-rw-r--r--sys/oss/gstosssink.h28
1 files changed, 5 insertions, 23 deletions
diff --git a/sys/oss/gstosssink.h b/sys/oss/gstosssink.h
index 06a13ea7..b61243fe 100644
--- a/sys/oss/gstosssink.h
+++ b/sys/oss/gstosssink.h
@@ -25,15 +25,12 @@
#define __GST_OSSSINK_H__
-#include <config.h>
#include <gst/gst.h>
+#include "gstosscommon.h"
#include "gstossclock.h"
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
#define GST_TYPE_OSSSINK \
(gst_osssink_get_type())
@@ -67,23 +64,11 @@ struct _GstOssSink {
gboolean sync;
guint64 handled;
- /* device */
- gchar *device;
-
- /* soundcard state */
- int fd;
- int caps; /* the capabilities */
- gint format;
- gint width;
- gint channels;
- gint frequency;
- gint fragment;
- gint fragment_size;
+ GstOssCommon common;
+
gboolean mute;
guint bufsize;
- guint bps;
- guint64 fragment_time;
};
struct _GstOssSinkClass {
@@ -97,9 +82,6 @@ GType gst_osssink_get_type(void);
gboolean gst_osssink_factory_init(GstPlugin *plugin);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
#endif /* __GST_OSSSINK_H__ */