gst_plugins_symbian/gst/devsound/gstdevsoundsink.h
changeset 0 0e761a78d257
child 7 71e347f905f2
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /* GStreamer
       
     2  * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
       
     3  *                    2000 Wim Taymans <wtay@chello.be>
       
     4  *
       
     5  * gstosssink.h: 
       
     6  *
       
     7  * This library is free software; you can redistribute it and/or
       
     8  * modify it under the terms of the GNU Library General Public
       
     9  * License as published by the Free Software Foundation; either
       
    10  * version 2 of the License, or (at your option) any later version.
       
    11  *
       
    12  * This library is distributed in the hope that it will be useful,
       
    13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    15  * Library General Public License for more details.
       
    16  *
       
    17  * You should have received a copy of the GNU Library General Public
       
    18  * License along with this library; if not, write to the
       
    19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    20  * Boston, MA 02111-1307, USA.
       
    21  */
       
    22  
       
    23 /*Gstreamer Sink Plugin for Symbian Devsound. This is the plugin used to 
       
    24 playback sound from the Symbian Devsound.
       
    25 
       
    26 */
       
    27 
       
    28 #ifndef __GST_DEVSOUNDSINK_H__
       
    29 #define __GST_DEVSOUNDSINK_H__
       
    30 
       
    31 
       
    32 #include <gst/gst.h>
       
    33 #include <gst/base/gstbasesink.h>
       
    34 
       
    35 
       
    36 G_BEGIN_DECLS
       
    37 
       
    38 #define GST_TYPE_DEVSOUND_SINK          (gst_devsound_sink_get_type())
       
    39 #define GST_DEVSOUND_SINK(obj)          (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DEVSOUND_SINK,GstDevsoundSink))
       
    40 #define GST_DEVSOUND_SINK_CLASS(klass)  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DEVSOUND_SINK,GstDevsoundSinkClass))
       
    41 #define GST_IS_DEVSOUND_SINK(obj)       (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DEVSOUND_SINK))
       
    42 #define GST_IS_DEVSOUND_SINK_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DEVSOUND_SINK))
       
    43 
       
    44 
       
    45 
       
    46 typedef struct _GstDevsoundSink GstDevsoundSink;
       
    47 typedef struct _GstDevsoundSinkClass GstDevsoundSinkClass;
       
    48 
       
    49 typedef struct _GstDevsoundUpdate GstDevsoundUpdate;
       
    50 
       
    51 struct _GstDevsoundUpdate{
       
    52 gboolean  channelsupdate;
       
    53 gboolean  rateupdate;
       
    54 gboolean  volumeupdate;
       
    55 gboolean  volumerampupdate;
       
    56 gboolean  leftbalanceupdate;
       
    57 gboolean  rightbalanceupdate;
       
    58 gboolean  preferenceupdate;
       
    59 gboolean  priorityupdate;
       
    60 gboolean  fourccupdate;
       
    61 gboolean  outputupdate;
       
    62 };
       
    63 
       
    64 struct _GstDevsoundSink {
       
    65   GstBaseSink    sink;	
       
    66   
       
    67   void *handle;	
       
    68   void *dataptr;
       
    69   gchar *device;
       
    70   gint   bytes_per_sample;
       
    71   GstCaps *probed_caps;
       
    72 
       
    73   GstDevsoundUpdate pending;
       
    74 
       
    75   //properties
       
    76   gint   channels;
       
    77   gint   rate;
       
    78   gint   volume;
       
    79   gint   volumeramp;
       
    80   gint   maxvolume;
       
    81   gint   leftbalance;
       
    82   gint   rightbalance;
       
    83   gint   priority;
       
    84   gint   preference;
       
    85   gint   samplesplayed;
       
    86   gint   output;
       
    87   gulong fourcc;
       
    88   gchar  *mimetype;
       
    89   GList   *fmt;
       
    90   gboolean framemodereq;
       
    91   gboolean g711cng;
       
    92   gboolean ilbccng;  
       
    93 };
       
    94 
       
    95 struct _GstDevsoundSinkClass {
       
    96   GstBaseSinkClass parent_class;
       
    97 };
       
    98 
       
    99 GType gst_devsound_sink_get_type(void);
       
   100 
       
   101 G_END_DECLS
       
   102 
       
   103 #endif /* __GST_DEVSOUNDSINK_H__ */