summaryrefslogtreecommitdiffstats
path: root/gst/speed/gstspeed.h
diff options
context:
space:
mode:
authorLeif Johnson <leif@ambient.2y.net>2003-10-08 07:50:58 +0000
committerLeif Johnson <leif@ambient.2y.net>2003-10-08 07:50:58 +0000
commit69edaac422d50a0e365fae15d354c07c0f5419d4 (patch)
treedd908c94e9d447973a70f289b65f65938d32f3c1 /gst/speed/gstspeed.h
parentd95362aab586bba80414d4cbf73b4d5223f6d9b6 (diff)
downloadgst-plugins-bad-69edaac422d50a0e365fae15d354c07c0f5419d4.tar.gz
gst-plugins-bad-69edaac422d50a0e365fae15d354c07c0f5419d4.tar.bz2
gst-plugins-bad-69edaac422d50a0e365fae15d354c07c0f5419d4.zip
just some code cleanup
Original commit message from CVS: just some code cleanup
Diffstat (limited to 'gst/speed/gstspeed.h')
-rw-r--r--gst/speed/gstspeed.h28
1 files changed, 9 insertions, 19 deletions
diff --git a/gst/speed/gstspeed.h b/gst/speed/gstspeed.h
index d56c0756..51258303 100644
--- a/gst/speed/gstspeed.h
+++ b/gst/speed/gstspeed.h
@@ -22,23 +22,20 @@
#ifndef __GST_SPEED_H__
#define __GST_SPEED_H__
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
-#include <config.h>
#include <gst/gst.h>
-/* #include <gst/meta/audioraw.h> */
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
#define GST_TYPE_SPEED \
(gst_speed_get_type())
#define GST_SPEED(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SPEED,GstSpeed))
#define GST_SPEED_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ULAW,GstSpeed))
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SPEED,GstSpeed))
#define GST_IS_SPEED(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SPEED))
#define GST_IS_SPEED_CLASS(obj) \
@@ -59,23 +56,19 @@ struct _GstSpeed {
GstPad *sinkpad, *srcpad;
GstBufferPool *sinkpool, *srcpool;
- gboolean silent;
gfloat speed;
- /* the next are valid for both int and float */
+ /* valid for both int and float */
GstSpeedFormat format;
guint rate;
guint channels;
guint width;
guint endianness;
+ guint buffer_frames;
- /* the next are valid only for format==GST_SPEED_FORMAT_INT */
+ /* valid only for format==GST_SPEED_FORMAT_INT */
guint depth;
gboolean is_signed;
-
- /* the next three are valid only for format==GST_SPEED_FORMAT_FLOAT */
- gfloat slope;
- gfloat intercept;
};
struct _GstSpeedClass {
@@ -84,9 +77,6 @@ struct _GstSpeedClass {
GType gst_speed_get_type(void);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
#endif /* __GST_SPEED_H__ */