• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) 2006 Wim Taymans <wim@fluendo.com>
3  *
4  * gstjacksink.h:
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef __GST_JACK_AUDIO_SINK_H__
23 #define __GST_JACK_AUDIO_SINK_H__
24 
25 #include <jack/jack.h>
26 
27 #include <gst/gst.h>
28 #include <gst/audio/gstaudiobasesink.h>
29 
30 #include "gstjack.h"
31 #include "gstjackaudioclient.h"
32 
33 G_BEGIN_DECLS
34 
35 #define GST_TYPE_JACK_AUDIO_SINK (gst_jack_audio_sink_get_type())
36 G_DECLARE_FINAL_TYPE (GstJackAudioSink, gst_jack_audio_sink,
37     GST, JACK_AUDIO_SINK, GstAudioBaseSink)
38 
39 /**
40  * GstJackAudioSink:
41  *
42  * Opaque #GstJackAudioSink.
43  */
44 struct _GstJackAudioSink {
45   GstAudioBaseSink element;
46 
47   /*< private >*/
48   /* cached caps */
49   GstCaps         *caps;
50 
51   /* properties */
52   GstJackConnect   connect;
53   gchar           *server;
54   jack_client_t   *jclient;
55   gchar           *client_name;
56   gchar           *port_pattern;
57   guint            transport;
58   gboolean         low_latency;
59   gchar           *port_names;
60 
61   /* our client */
62   GstJackAudioClient *client;
63 
64   /* our ports */
65   jack_port_t    **ports;
66   int              port_count;
67   sample_t       **buffers;
68 };
69 
70 G_END_DECLS
71 
72 #endif /* __GST_JACK_AUDIO_SINK_H__ */
73