1
/* This file is part of the KDE project.
3
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
5
This library is free software: you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published by
7
the Free Software Foundation, either version 2.1 or 3 of the License.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU Lesser General Public License for more details.
14
You should have received a copy of the GNU Lesser General Public License
15
along with this library. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef __ARTS_SINK_H__
19
#define __ARTS_SINK_H__
23
#include <QtCore/QString>
24
#include <QtCore/QLibrary>
25
#include <gst/audio/gstaudiosink.h>
38
#define GST_TYPE_ARTS_SINK (arts_sink_get_type())
39
#define GST_ARTS_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ARTS_SINK,ArtsSink))
40
#define GST_ARTS_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ARTS_SINK,ArtsSinkClass))
41
#define GST_IS_ARTS_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ARTS_SINK))
42
#define GST_IS_ARTS_SINK_CLASS(klass)(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ARTS_SINK))
44
typedef struct _ArtsSink ArtsSink;
45
typedef struct _ArtsSinkClass ArtsSinkClass;
47
enum arts_parameter_t_enum {
48
ARTS_P_BUFFER_SIZE = 1,
49
ARTS_P_BUFFER_TIME = 2,
50
ARTS_P_BUFFER_SPACE = 3,
51
ARTS_P_SERVER_LATENCY = 4,
52
ARTS_P_TOTAL_LATENCY = 5,
54
ARTS_P_PACKET_SIZE = 7,
55
ARTS_P_PACKET_COUNT = 8,
56
ARTS_P_PACKET_SETTINGS = 9
59
typedef void *arts_stream_t;
72
typedef void (*Ptr_g_type_init)();
73
typedef GConfClient* (*Ptr_gconf_client_get_default)();
74
typedef char* (*Ptr_gconf_client_get_string)(GConfClient*, const char*, GError **);
75
typedef void (*Ptr_g_object_unref)(void *);
76
typedef void (*Ptr_g_error_free)(GError *);
77
typedef void (*Ptr_g_free)(void*);
79
struct _ArtsSinkClass {
80
GstAudioSinkClass parent_class;
83
GType arts_sink_get_type (void);
88
} //namespace Phonon::Gstreamer
92
#endif // __ARTS_SINK_H__