gst_plugins_symbian/gst/devsound/gstspeechencoderconfig.h
changeset 2 5505e8908944
equal deleted inserted replaced
1:4c282e7dd6d3 2:5505e8908944
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
       
     3 *
       
     4 * This library is free software; you can redistribute it and/or
       
     5 * modify it under the terms of the GNU Lesser General Public
       
     6 * License as published by the Free Software Foundation; either
       
     7 * version 2 of the License, or (at your option) any later version.
       
     8 *
       
     9 * This library is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    12 * Lesser General Public License for more details.
       
    13 *
       
    14 * You should have received a copy of the GNU Lesser General Public
       
    15 * License along with this library; if not, write to the
       
    16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    17 * Boston, MA 02111-1307, USA.
       
    18 *
       
    19 * Description:
       
    20 *
       
    21 */
       
    22 
       
    23 #ifndef __SPEECH_ENCODER_CONFIG_INTERFACE__H
       
    24 #define __SPEECH_ENCODER_CONFIG_INTERFACE__H
       
    25 
       
    26 #include <glib.h>
       
    27 #include <gst/gstelement.h>
       
    28 #include <gst/gstpluginfeature.h>
       
    29 #include <gst/gst.h>
       
    30 
       
    31 G_BEGIN_DECLS
       
    32 
       
    33 #define GST_TYPE_SPEECH_ENCODER_CONFIG     (gst_speech_encoder_config_get_type ())
       
    34 #define GST_SPEECH_ENCODER_CONFIG(obj)     (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_SPEECH_ENCODER_CONFIG, GstSpeechEncoderConfig))
       
    35 #define GST_IS_SPEECH_ENCODER_CONFIG(obj)      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_SPEECH_ENCODER_CONFIG))
       
    36 #define GST_SPEECH_ENCODER_CONFIG_GET_IFACE(obj)   (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_SPEECH_ENCODER_CONFIG, GstSpeechEncoderConfigIntfc))
       
    37 
       
    38 typedef struct _GstSpeechEncoderConfig      GstSpeechEncoderConfig;
       
    39 typedef struct _GstSpeechEncoderConfigIntfc GstSpeechEncoderConfigIntfc;
       
    40 
       
    41 struct _GstSpeechEncoderConfigIntfc
       
    42     {
       
    43     GTypeInterface parent;
       
    44  	gint (*GetSupportedBitrates)(GList** aSupportedBitrates);
       
    45 	gint (*SetBitrate)(guint aBitrate);
       
    46 	gint (*GetBitrate)(guint* aBitrate);
       
    47 	gint (*SetVadMode)(gboolean aVadMode);
       
    48 	gint (*GetVadMode)(gboolean* aVadMode);
       
    49 
       
    50     };
       
    51 
       
    52 IMPORT_C GType gst_speech_encoder_config_get_type(void);
       
    53 
       
    54 G_END_DECLS
       
    55 
       
    56 #endif /* __SPEECH_ENCODER_CONFIG_INTERFACE */