diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index 75b5833686..8aa08a1585 100644 --- a/gst/volume/gstvolume.c +++ b/gst/volume/gstvolume.c @@ -1,4 +1,6 @@ /* -*- c-basic-offset: 2 -*- + * vi:si:et:sw=2:sts=8:ts=8:expandtab + * * GStreamer * Copyright (C) 1999-2001 Erik Walthinsen * Copyright (C) 2005 Andy Wingo @@ -22,6 +24,7 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif + #include #include #include @@ -33,15 +36,14 @@ /* the volume factor is a range from 0.0 to (arbitrary) 4.0 * we map 1.0 to VOLUME_UNITY_INT */ -#define VOLUME_UNITY_INT 8192 /* internal int for unity */ -#define VOLUME_UNITY_BIT_SHIFT 13 /* number of bits to shift - for unity */ -#define VOLUME_MAX_DOUBLE 4.0 -#define VOLUME_MAX_INT16 32767 -#define VOLUME_MIN_INT16 -32768 +#define VOLUME_UNITY_INT 8192 /* internal int for unity */ +#define VOLUME_UNITY_BIT_SHIFT 13 /* number of bits to shift for unity */ +#define VOLUME_MAX_DOUBLE 4.0 +#define VOLUME_MAX_INT16 32767 +#define VOLUME_MIN_INT16 -32768 /* number of steps we use for the mixer interface to go from 0.0 to 1.0 */ -# define VOLUME_STEPS 100 +# define VOLUME_STEPS 100 static GstElementDetails volume_details = { "Volume", @@ -50,7 +52,6 @@ static GstElementDetails volume_details = { "Andy Wingo ", }; - /* Filter signals and args */ enum { @@ -102,7 +103,7 @@ static GstStaticPadTemplate volume_src_factory = GST_STATIC_PAD_TEMPLATE ("src", static void gst_volume_interface_init (GstImplementsInterfaceClass * klass); static void gst_volume_mixer_init (GstMixerClass * iface); -#define _init_interfaces(type) \ +#define _init_interfaces(type) \ { \ static const GInterfaceInfo voliface_info = { \ (GInterfaceInitFunc) gst_volume_interface_init, \ @@ -135,7 +136,6 @@ static GstFlowReturn volume_transform (GstBaseTransform * base, gboolean volume_set_caps (GstBaseTransform * base, GstCaps * incaps, GstCaps * outcaps); - static void volume_process_float (GstVolume * this, GstClockTime tstamp, gpointer bytes, gint n_bytes); static void volume_process_int16 (GstVolume * this, GstClockTime tstamp, diff --git a/gst/volume/gstvolume.h b/gst/volume/gstvolume.h index 0fed0c0b7a..9b494d2917 100644 --- a/gst/volume/gstvolume.h +++ b/gst/volume/gstvolume.h @@ -1,4 +1,6 @@ /* -*- c-basic-offset: 2 -*- + * vi:si:et:sw=2:sts=8:ts=8:expandtab + * * GStreamer * Copyright (C) <1999> Erik Walthinsen * @@ -18,17 +20,13 @@ * Boston, MA 02111-1307, USA. */ - #ifndef __GST_VOLUME_H__ #define __GST_VOLUME_H__ - #include - G_BEGIN_DECLS - #define GST_TYPE_VOLUME \ (gst_volume_get_type()) #define GST_VOLUME(obj) \ @@ -56,7 +54,7 @@ struct _GstVolume { gboolean mute; gint volume_i, real_vol_i; /* the _i(nt) values get synchronized with the */ gfloat volume_f, real_vol_f; /* _f(loat) values on each update */ - + GList *tracklist; }; @@ -64,10 +62,8 @@ struct _GstVolumeClass { GstBaseTransformClass parent_class; }; -GType gst_volume_get_type(void); - +GType gst_volume_get_type (void); G_END_DECLS - #endif /* __GST_VOLUME_H__ */