Home | History | Annotate | Download | only in audio
      1 /*
      2  *
      3  *  BlueZ - Bluetooth protocol stack for Linux
      4  *
      5  *  Copyright (C) 2004-2010  Marcel Holtmann <marcel (at) holtmann.org>
      6  *
      7  *
      8  *  This library is free software; you can redistribute it and/or
      9  *  modify it under the terms of the GNU Lesser General Public
     10  *  License as published by the Free Software Foundation; either
     11  *  version 2.1 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  *  Lesser General Public License for more details.
     17  *
     18  *  You should have received a copy of the GNU Lesser General Public
     19  *  License along with this library; if not, write to the Free Software
     20  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     21  *
     22  */
     23 
     24 #include <gst/gst.h>
     25 
     26 #include "sbc.h"
     27 
     28 G_BEGIN_DECLS
     29 
     30 #define GST_TYPE_SBC_PARSE \
     31 	(gst_sbc_parse_get_type())
     32 #define GST_SBC_PARSE(obj) \
     33 	(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SBC_PARSE,GstSbcParse))
     34 #define GST_SBC_PARSE_CLASS(klass) \
     35 	(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SBC_PARSE,GstSbcParseClass))
     36 #define GST_IS_SBC_PARSE(obj) \
     37 	(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SBC_PARSE))
     38 #define GST_IS_SBC_PARSE_CLASS(obj) \
     39 	(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SBC_PARSE))
     40 
     41 typedef struct _GstSbcParse GstSbcParse;
     42 typedef struct _GstSbcParseClass GstSbcParseClass;
     43 
     44 struct _GstSbcParse {
     45 	GstElement element;
     46 
     47 	GstPad *sinkpad;
     48 	GstPad *srcpad;
     49 
     50 	GstBuffer *buffer;
     51 
     52 	sbc_t sbc;
     53 	sbc_t new_sbc;
     54 	GstCaps *outcaps;
     55 	gboolean first_parsing;
     56 
     57 	gint channels;
     58 	gint rate;
     59 };
     60 
     61 struct _GstSbcParseClass {
     62 	GstElementClass parent_class;
     63 };
     64 
     65 GType gst_sbc_parse_get_type(void);
     66 
     67 gboolean gst_sbc_parse_plugin_init(GstPlugin *plugin);
     68 
     69 G_END_DECLS
     70