|
Packit |
971217 |
/* -*- c-basic-offset: 2 -*-
|
|
Packit |
971217 |
* vi:si:et:sw=2:sts=8:ts=8:expandtab
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* GStreamer
|
|
Packit |
971217 |
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
Packit |
971217 |
* Copyright (C) 2010 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifndef __GST_VOLUME_H__
|
|
Packit |
971217 |
#define __GST_VOLUME_H__
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/gst.h>
|
|
Packit |
971217 |
#include <gst/base/gstbasetransform.h>
|
|
Packit |
971217 |
#include <gst/audio/streamvolume.h>
|
|
Packit |
971217 |
#include <gst/audio/audio.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudiofilter.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_BEGIN_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define GST_TYPE_VOLUME \
|
|
Packit |
971217 |
(gst_volume_get_type())
|
|
Packit |
971217 |
#define GST_VOLUME(obj) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VOLUME,GstVolume))
|
|
Packit |
971217 |
#define GST_VOLUME_CLASS(klass) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VOLUME,GstVolumeClass))
|
|
Packit |
971217 |
#define GST_IS_VOLUME(obj) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VOLUME))
|
|
Packit |
971217 |
#define GST_IS_VOLUME_CLASS(klass) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VOLUME))
|
|
Packit |
971217 |
|
|
Packit |
971217 |
typedef struct _GstVolume GstVolume;
|
|
Packit |
971217 |
typedef struct _GstVolumeClass GstVolumeClass;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* GstVolume:
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Opaque data structure.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
struct _GstVolume {
|
|
Packit |
971217 |
GstAudioFilter element;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void (*process)(GstVolume*, gpointer, guint);
|
|
Packit |
971217 |
void (*process_controlled)(GstVolume*, gpointer, gdouble *, guint, guint);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean mute;
|
|
Packit |
971217 |
gfloat volume;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean current_mute;
|
|
Packit |
971217 |
gdouble current_volume;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gint current_vol_i32;
|
|
Packit |
971217 |
gint current_vol_i24; /* the _i(nt) values get synchronized with the */
|
|
Packit |
971217 |
gint current_vol_i16; /* the _i(nt) values get synchronized with the */
|
|
Packit |
971217 |
gint current_vol_i8; /* the _i(nt) values get synchronized with the */
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GList *tracklist;
|
|
Packit |
971217 |
gboolean negotiated;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean *mutes;
|
|
Packit |
971217 |
guint mutes_count;
|
|
Packit |
971217 |
gdouble *volumes;
|
|
Packit |
971217 |
guint volumes_count;
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
struct _GstVolumeClass {
|
|
Packit |
971217 |
GstAudioFilterClass parent_class;
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GType gst_volume_get_type (void);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_END_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#endif /* __GST_VOLUME_H__ */
|