~ubuntu-branches/ubuntu/saucy/phonon-backend-gstreamer/saucy-proposed

« back to all changes in this revision

Viewing changes to gstreamer/artssink.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2011-04-15 14:43:30 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110415144330-7uif3319lxdu4ltt
Tags: 4:4.7.0really4.5.0-0ubuntu2
* New upstream release
* Add kubuntu_02_install_codec.diff to fix codec install

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  This file is part of the KDE project.
2
 
 
3
 
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4
 
 
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.
8
 
 
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.
13
 
 
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/>.
16
 
*/
17
 
 
18
 
#ifndef __ARTS_SINK_H__
19
 
#define __ARTS_SINK_H__
20
 
 
21
 
#include "common.h"
22
 
 
23
 
#include <QtCore/QString>
24
 
#include <QtCore/QLibrary>
25
 
#include <gst/audio/gstaudiosink.h>
26
 
 
27
 
QT_BEGIN_NAMESPACE
28
 
 
29
 
namespace Phonon
30
 
{
31
 
namespace Gstreamer
32
 
{
33
 
 
34
 
G_BEGIN_DECLS
35
 
 
36
 
extern "C" {
37
 
 
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))
43
 
 
44
 
typedef struct _ArtsSink ArtsSink;
45
 
typedef struct _ArtsSinkClass ArtsSinkClass;
46
 
 
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,
53
 
    ARTS_P_BLOCKING = 6,
54
 
    ARTS_P_PACKET_SIZE = 7,
55
 
    ARTS_P_PACKET_COUNT = 8,
56
 
    ARTS_P_PACKET_SETTINGS = 9
57
 
};
58
 
 
59
 
typedef void *arts_stream_t;
60
 
 
61
 
struct _ArtsSink {
62
 
    GstAudioSink sink;
63
 
    arts_stream_t stream;
64
 
    int samplerate;
65
 
    int samplebits;
66
 
    int channels;
67
 
    int bytes_per_sample;
68
 
};
69
 
 
70
 
struct GConfClient;
71
 
struct GError;
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*);
78
 
 
79
 
struct _ArtsSinkClass {
80
 
    GstAudioSinkClass parent_class;
81
 
};
82
 
 
83
 
GType arts_sink_get_type (void);
84
 
}
85
 
G_END_DECLS
86
 
 
87
 
}
88
 
} //namespace Phonon::Gstreamer
89
 
 
90
 
QT_END_NAMESPACE
91
 
 
92
 
#endif // __ARTS_SINK_H__