1
/* GStreamer - AirPort Express (ApEx) Audio Sink -
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.
6
* RAW PCM input only as defined by the following GST_STATIC_PAD_TEMPLATE regarding the expected gstapexraop input format.
8
* Copyright (C) 2008 Jérémie Bernard [GRemi] <gremimail@gmail.com>
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.
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.
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.
29
#ifndef __GST_APEXSINK_H__
30
#define __GST_APEXSINK_H__
32
#include "gstapexraop.h"
34
#include <gst/audio/gstaudiosink.h>
35
#include <gst/interfaces/mixer.h>
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;
58
/* public read/write sink properties */
63
/* private attributes : latency time local copy, tracks list of the mixer interface */
67
/* private apex client */
68
GstApExRAOP *gst_apexraop;
71
struct _GstApExSinkClass
73
GstAudioSinkClass parent_class;
76
/* genum jack access */
77
GType gst_apexsink_jackstatus_get_type (void);
78
GType gst_apexsink_jacktype_get_type (void);
80
/* audio sink standard api */
81
GType gst_apexsink_get_type (void);