gst-gmyth/playbinmaemo/gstplaybinmaemo.h
author leo_sobral
Fri Aug 17 22:47:49 2007 +0100 (2007-08-17)
branchtrunk
changeset 811 69aba3b6b7b3
parent 792 a6ac25bf88a7
child 852 2498e4f8c758
permissions -rw-r--r--
[svn r817] Fixed volume element bug and added audioconvert to audio pipeline
renatofilho@787
     1
/* GStreamer
renatofilho@787
     2
 *
renatofilho@787
     3
 * This library is free software; you can redistribute it and/or
renatofilho@787
     4
 * modify it under the terms of the GNU Library General Public
renatofilho@787
     5
 * License as published by the Free Software Foundation; either
renatofilho@787
     6
 * version 2 of the License, or (at your option) any later version.
renatofilho@787
     7
 *
renatofilho@787
     8
 * This library is distributed in the hope that it will be useful,
renatofilho@787
     9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
renatofilho@787
    10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
renatofilho@787
    11
 * Library General Public License for more details.
renatofilho@787
    12
 *
renatofilho@787
    13
 * You should have received a copy of the GNU Library General Public
renatofilho@787
    14
 * License along with this library; if not, write to the
renatofilho@787
    15
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
renatofilho@787
    16
 * Boston, MA 02111-1307, USA.
renatofilho@787
    17
 */
renatofilho@787
    18
renatofilho@787
    19
#ifndef __GST_PLAYBINMAEMO_H__
renatofilho@787
    20
#define __GST_PLAYBINMAEMO_H__
renatofilho@787
    21
renatofilho@787
    22
#include <gst/gst.h>
renatofilho@787
    23
renatofilho@787
    24
G_BEGIN_DECLS
renatofilho@787
    25
renatofilho@787
    26
#define GST_TYPE_PLAY_BIN_MAEMO \
renatofilho@787
    27
    (gst_play_bin_maemo_get_type())
renatofilho@787
    28
#define GST_PLAY_BIN_MAEMO(obj) \
renatofilho@787
    29
    (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemo))
renatofilho@787
    30
#define GST_PLAY_BIN_MAEMO_CLASS(klass) \
renatofilho@787
    31
    (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemoClass))
renatofilho@787
    32
#define GST_IS_PLAY_BIN_MAEMO(obj) \
renatofilho@787
    33
    (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PLAY_BIN_MAEMO))
renatofilho@787
    34
#define GST_IS_PLAY_BIN_MAEMO_CLASS(klass) \
renatofilho@787
    35
    (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PLAY_BIN_MAEMO))
renatofilho@787
    36
#define GST_PLAY_BIN_MAEMO_GET_CLASS(obj) \
renatofilho@787
    37
  (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemoClass))
renatofilho@787
    38
renatofilho@787
    39
typedef struct _GstPlayBinMaemo GstPlayBinMaemo;
renatofilho@787
    40
typedef struct _GstPlayBinMaemoClass GstPlayBinMaemoClass;
renatofilho@787
    41
renatofilho@787
    42
struct _GstPlayBinMaemo {
renatofilho@787
    43
  GstPipeline    pipeline;
renatofilho@787
    44
renatofilho@787
    45
  /* properties */
renatofilho@787
    46
  guint64        queue_size;
renatofilho@787
    47
  guint64        queue_min_threshold;
renatofilho@787
    48
  gboolean       is_stream;
renatofilho@788
    49
  gboolean       parse_metadata;
renatofilho@787
    50
  glong          xid;
leo_sobral@811
    51
  gfloat         volume;
renatofilho@787
    52
renatofilho@787
    53
  /* currently loaded media */
renatofilho@787
    54
  gboolean      need_rebuild;
renatofilho@788
    55
  gboolean      has_metadata;
renatofilho@787
    56
  gchar         *uri;
renatofilho@792
    57
  GstElement    *volume_element;
renatofilho@787
    58
  GstElement    *source;
leo_sobral@811
    59
  GstElement    *video_sink;
renatofilho@792
    60
  GList         *elements;
renatofilho@787
    61
  GList         *factories;
renatofilho@787
    62
};
renatofilho@787
    63
renatofilho@787
    64
struct _GstPlayBinMaemoClass {
renatofilho@787
    65
  GstPipelineClass parent_class;
renatofilho@787
    66
};
renatofilho@787
    67
renatofilho@787
    68
GType gst_play_bin_maemo_get_type (void);
renatofilho@787
    69
renatofilho@787
    70
G_END_DECLS
renatofilho@787
    71
renatofilho@787
    72
#endif /* __GST_PLAYBINMAEMO_H__ */
renatofilho@787
    73