~oah-dev/oah/gst-plugins-bad

« back to all changes in this revision

Viewing changes to ext/apexsink/gstapexsink.h

  • Committer: Haakon Sporsheim
  • Date: 2009-03-12 13:52:03 UTC
  • Revision ID: haakon.sporsheim@tandberg.com-20090312135203-i5k294hgkushb0mt
Initial import of git repository: git://anongit.freedesktop.org/gstreamer/gst-plugins-bad (tag: RELEASE-0_10_10)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GStreamer - AirPort Express (ApEx) Audio Sink -
 
2
 *
 
3
 * Remote Audio Access Protocol (RAOP) as used in Apple iTunes to stream music to the Airport Express (ApEx) -
 
4
 * RAOP is based on the Real Time Streaming Protocol (RTSP) but with an extra challenge-response RSA based authentication step.
 
5
 *
 
6
 * RAW PCM input only as defined by the following GST_STATIC_PAD_TEMPLATE regarding the expected gstapexraop input format.
 
7
 *
 
8
 * Copyright (C) 2008 Jérémie Bernard [GRemi] <gremimail@gmail.com>
 
9
 *
 
10
 * gstapexsink.h
 
11
 *
 
12
 * This library is free software; you can redistribute it and/or
 
13
 * modify it under the terms of the GNU Library General Public
 
14
 * License as published by the Free Software Foundation; either
 
15
 * version 2 of the License, or (at your option) any later version.
 
16
 *
 
17
 * This library is distributed in the hope that it will be useful,
 
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
20
 * Library General Public License for more details.
 
21
 *
 
22
 * You should have received a copy of the GNU Library General Public
 
23
 * License along with this library; if not, write to the
 
24
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
25
 * Boston, MA 02111-1307, USA.
 
26
 *
 
27
 */
 
28
 
 
29
#ifndef __GST_APEXSINK_H__
 
30
#define __GST_APEXSINK_H__
 
31
 
 
32
#include "gstapexraop.h"
 
33
 
 
34
#include <gst/audio/gstaudiosink.h>
 
35
#include <gst/interfaces/mixer.h>
 
36
 
 
37
G_BEGIN_DECLS
 
38
 
 
39
/* standard gstreamer macros */
 
40
#define GST_TYPE_APEX_SINK                      (gst_apexsink_get_type())
 
41
#define GST_APEX_SINK(obj)                      (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_APEX_SINK,GstApExSink))
 
42
#define GST_APEX_SINK_CLASS(klass)              (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_APEX_SINK,GstApExSinkClass))
 
43
#define GST_IS_APEX_SINK(obj)                   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_APEX_SINK))
 
44
#define GST_IS_APEX_SINK_CLASS(klass)           (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_APEX_SINK))
 
45
#define GST_APEX_SINK_CAST(obj)                 ((GstApExSink*)(obj))
 
46
#define GST_APEX_SINK_NAME                      "apexsink"
 
47
#define GST_APEX_SINK_JACKTYPE_TYPE             (gst_apexsink_jacktype_get_type())
 
48
#define GST_APEX_SINK_JACKSTATUS_TYPE           (gst_apexsink_jackstatus_get_type())
 
49
/* ApEx classes declaration */
 
50
typedef struct _GstApExSink GstApExSink;
 
51
typedef struct _GstApExSinkClass GstApExSinkClass;
 
52
 
 
53
struct _GstApExSink
 
54
{
 
55
  /* base definition */
 
56
  GstAudioSink sink;
 
57
 
 
58
  /* public read/write sink properties */
 
59
  gchar *host;
 
60
  guint port;
 
61
  guint volume;
 
62
 
 
63
  /* private attributes : latency time local copy, tracks list of the mixer interface */
 
64
  guint64 latency_time;
 
65
  GList *tracks;
 
66
 
 
67
  /* private apex client */
 
68
  GstApExRAOP *gst_apexraop;
 
69
};
 
70
 
 
71
struct _GstApExSinkClass
 
72
{
 
73
  GstAudioSinkClass parent_class;
 
74
};
 
75
 
 
76
/* genum jack access */
 
77
GType gst_apexsink_jackstatus_get_type (void);
 
78
GType gst_apexsink_jacktype_get_type (void);
 
79
 
 
80
/* audio sink standard api */
 
81
GType gst_apexsink_get_type (void);
 
82
 
 
83
G_END_DECLS
 
84
 
 
85
#endif