1 /* GStreamer 2 * Copyright (C) 2005 Wim Taymans <wim at fluendo dot com> 3 * 4 * gstaudioconvert.h: Convert audio to different audio formats automatically 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Library General Public 8 * License as published by the Free Software Foundation; either 9 * version 2 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Library General Public License for more details. 15 * 16 * You should have received a copy of the GNU Library General Public 17 * License along with this library; if not, write to the 18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 19 * Boston, MA 02110-1301, USA. 20 */ 21 22 #ifndef __GST_AUDIO_CONVERT_H__ 23 #define __GST_AUDIO_CONVERT_H__ 24 25 #include <gst/gst.h> 26 #include <gst/base/gstbasetransform.h> 27 #include <gst/audio/audio.h> 28 29 #define GST_TYPE_AUDIO_CONVERT (gst_audio_convert_get_type()) 30 G_DECLARE_FINAL_TYPE (GstAudioConvert, gst_audio_convert, 31 GST, AUDIO_CONVERT, GstBaseTransform); 32 33 /** 34 * GstAudioConvert: 35 * 36 * The audioconvert object structure. 37 */ 38 struct _GstAudioConvert 39 { 40 GstBaseTransform element; 41 42 /* properties */ 43 GstAudioDitherMethod dither; 44 GstAudioNoiseShapingMethod ns; 45 GValue mix_matrix; 46 gboolean mix_matrix_is_set; 47 48 GstAudioInfo in_info; 49 GstAudioInfo out_info; 50 GstAudioConverter *convert; 51 }; 52 53 GST_ELEMENT_REGISTER_DECLARE (audioconvert); 54 55 #endif /* __GST_AUDIO_CONVERT_H__ */ 56