Merge branch 'master' into 0.11
[platform/upstream/gstreamer.git] / ext / jack / gstjack.h
1 /* GStreamer
2  * Copyright (C) 2006 Wim Taymans <wim@fluendo.com>
3  *
4  * gstjack.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., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef _GST_JACK_H_
23 #define _GST_JACK_H_
24
25
26 /**
27  * GstJackConnect:
28  * @GST_JACK_CONNECT_NONE: Don't automatically connect to physical ports.
29  *     In this mode, the element will accept any number of input channels and will
30  *     create (but not connect) an output port for each channel.
31  * @GST_JACK_CONNECT_AUTO: In this mode, the element will try to connect each
32  *     output port to a random physical jack input pin. The sink will
33  *     expose the number of physical channels on its pad caps.
34  * @GST_JACK_CONNECT_AUTO_FORCED: In this mode, the element will try to connect each
35  *     output port to a random physical jack input pin. The  element will accept any number
36  *     of input channels.
37  *
38  * Specify how the output ports will be connected.
39  */
40
41 typedef enum {
42   GST_JACK_CONNECT_NONE,
43   GST_JACK_CONNECT_AUTO,
44   GST_JACK_CONNECT_AUTO_FORCED
45 } GstJackConnect;
46
47 typedef jack_default_audio_sample_t sample_t;
48
49 #define GST_TYPE_JACK_CONNECT (gst_jack_connect_get_type())
50 #define GST_TYPE_JACK_CLIENT  (gst_jack_client_get_type ())
51
52 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
53 #define GST_JACK_FORMAT_STR "F32LE"
54 #else
55 #define GST_JACK_FORMAT_STR "F32BE"
56 #endif
57
58 GType gst_jack_client_get_type(void);
59 GType gst_jack_connect_get_type(void);
60
61 #endif  // _GST_JACK_H_