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__
22
#include <sys/types.h>
24
#include <gst/audio/gstaudiosink.h>
37
#define GST_TYPE_ARTS_SINK (arts_sink_get_type())
38
#define GST_ARTS_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ARTS_SINK,ArtsSink))
39
#define GST_ARTS_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ARTS_SINK,ArtsSinkClass))
40
#define GST_IS_ARTS_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ARTS_SINK))
41
#define GST_IS_ARTS_SINK_CLASS(klass)(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ARTS_SINK))
43
typedef struct _ArtsSink ArtsSink;
44
typedef struct _ArtsSinkClass ArtsSinkClass;
46
enum arts_parameter_t_enum {
47
ARTS_P_BUFFER_SIZE = 1,
48
ARTS_P_BUFFER_TIME = 2,
49
ARTS_P_BUFFER_SPACE = 3,
50
ARTS_P_SERVER_LATENCY = 4,
51
ARTS_P_TOTAL_LATENCY = 5,
53
ARTS_P_PACKET_SIZE = 7,
54
ARTS_P_PACKET_COUNT = 8,
55
ARTS_P_PACKET_SETTINGS = 9
58
typedef void *arts_stream_t;
71
typedef void (*Ptr_g_type_init)();
72
typedef GConfClient* (*Ptr_gconf_client_get_default)();
73
typedef char* (*Ptr_gconf_client_get_string)(GConfClient*, const char*, GError **);
74
typedef void (*Ptr_g_object_unref)(void *);
75
typedef void (*Ptr_g_error_free)(GError *);
76
typedef void (*Ptr_g_free)(void*);
78
struct _ArtsSinkClass {
79
GstAudioSinkClass parent_class;
82
GType arts_sink_get_type (void);
87
} //namespace Phonon::Gstreamer
91
#endif // __ARTS_SINK_H__