1 /* GStreamer 2 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> 3 * 2000 Wim Taymans <wtay@chello.be> 4 * Copyright (C) 2013 Sebastian Dröge <slomo@circular-chaos.org> 5 * 6 * gstaudiomixer.h: Header for GstAudioMixer element 7 * 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Library General Public 10 * License as published by the Free Software Foundation; either 11 * version 2 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Library General Public License for more details. 17 * 18 * You should have received a copy of the GNU Library General Public 19 * License along with this library; if not, write to the 20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 21 * Boston, MA 02110-1301, USA. 22 */ 23 24 #ifndef __GST_AUDIO_MIXER_H__ 25 #define __GST_AUDIO_MIXER_H__ 26 27 #include <gst/gst.h> 28 #include <gst/audio/audio.h> 29 #include <gst/audio/gstaudioaggregator.h> 30 31 G_BEGIN_DECLS 32 33 #define GST_TYPE_AUDIO_MIXER (gst_audiomixer_get_type()) 34 G_DECLARE_FINAL_TYPE (GstAudioMixer, gst_audiomixer, GST, AUDIO_MIXER, 35 GstAudioAggregator) 36 37 /** 38 * GstAudioMixer: 39 * 40 * The audiomixer object structure. 41 */ 42 struct _GstAudioMixer { 43 GstAudioAggregator element; 44 }; 45 46 #define GST_TYPE_AUDIO_MIXER_PAD (gst_audiomixer_pad_get_type()) 47 G_DECLARE_FINAL_TYPE (GstAudioMixerPad, gst_audiomixer_pad, 48 GST, AUDIO_MIXER_PAD, GstAudioAggregatorConvertPad) 49 50 struct _GstAudioMixerPad { 51 GstAudioAggregatorConvertPad parent; 52 53 gdouble volume; 54 gint volume_i32; 55 gint volume_i16; 56 gint volume_i8; 57 gboolean mute; 58 }; 59 60 G_END_DECLS 61 62 #endif /* __GST_AUDIO_MIXER_H__ */ 63