1 /* -*- c-basic-offset: 2 -*-
3 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
22 #ifndef __GST_VOLUME_H__
23 #define __GST_VOLUME_H__
27 /* #include <gst/meta/audioraw.h> */
32 #endif /* __cplusplus */
35 #define GST_TYPE_VOLUME \
36 (gst_volume_get_type())
37 #define GST_VOLUME(obj) \
38 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VOLUME,GstVolume))
39 #define GST_VOLUME_CLASS(klass) \
40 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ULAW,GstVolume))
41 #define GST_IS_VOLUME(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VOLUME))
43 #define GST_IS_VOLUME_CLASS(obj) \
44 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VOLUME))
46 typedef struct _GstVolume GstVolume;
47 typedef struct _GstVolumeClass GstVolumeClass;
48 typedef enum _GstVolumeFormat GstVolumeFormat;
50 enum _GstVolumeFormat {
51 GST_VOLUME_FORMAT_INT=1,
52 GST_VOLUME_FORMAT_FLOAT
58 GstPad *sinkpad, *srcpad;
59 GstDParamManager *dpman;
62 gint volume_i, real_vol_i; /* the _i(nt) values get synchronized with the */
63 gfloat volume_f, real_vol_f; /* _f(loat) values on each update */
68 struct _GstVolumeClass {
69 GstElementClass parent_class;
72 GType gst_volume_get_type(void);
76 #endif /* __cplusplus */
79 #endif /* __GST_VOLUME_H__ */