gst_plugins_symbian/gst/devsound/gstspeechencoderconfig.h
changeset 0 0e761a78d257
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __SPEECH_ENCODER_CONFIG_INTERFACE__H
       
    20 #define __SPEECH_ENCODER_CONFIG_INTERFACE__H
       
    21 
       
    22 #include <glib.h>
       
    23 #include <gst/gstelement.h>
       
    24 #include <gst/gstpluginfeature.h>
       
    25 #include <gst/gst.h>
       
    26 
       
    27 G_BEGIN_DECLS
       
    28 
       
    29 #define GST_TYPE_SPEECH_ENCODER_CONFIG     (gst_speech_encoder_config_get_type ())
       
    30 #define GST_SPEECH_ENCODER_CONFIG(obj)     (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_SPEECH_ENCODER_CONFIG, GstSpeechEncoderConfig))
       
    31 #define GST_IS_SPEECH_ENCODER_CONFIG(obj)      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_SPEECH_ENCODER_CONFIG))
       
    32 #define GST_SPEECH_ENCODER_CONFIG_GET_IFACE(obj)   (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_SPEECH_ENCODER_CONFIG, GstSpeechEncoderConfigIntfc))
       
    33 
       
    34 typedef struct _GstSpeechEncoderConfig      GstSpeechEncoderConfig;
       
    35 typedef struct _GstSpeechEncoderConfigIntfc GstSpeechEncoderConfigIntfc;
       
    36 
       
    37 struct _GstSpeechEncoderConfigIntfc
       
    38     {
       
    39     GTypeInterface parent;
       
    40  	gint (*GetSupportedBitrates)(GList** aSupportedBitrates);
       
    41 	gint (*SetBitrate)(guint aBitrate);
       
    42 	gint (*GetBitrate)(guint* aBitrate);
       
    43 	gint (*SetVadMode)(gboolean aVadMode);
       
    44 	gint (*GetVadMode)(gboolean* aVadMode);
       
    45 
       
    46     };
       
    47 
       
    48 IMPORT_C GType gst_speech_encoder_config_get_type(void);
       
    49 
       
    50 G_END_DECLS
       
    51 
       
    52 #endif /* __SPEECH_ENCODER_CONFIG_INTERFACE */