~ubuntu-branches/ubuntu/trusty/phonon/trusty-updates

« back to all changes in this revision

Viewing changes to gstreamer/artssink.h

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2011-03-11 21:39:20 UTC
  • mfrom: (6.1.4 experimental)
  • Revision ID: james.westby@ubuntu.com-20110311213920-pvkmqc1gdpy88uzx
Tags: 4:4.6.0really4.4.4-2
* Drop phonon-backends-dbg from phonon-dbg Recommends/Breaks. No longer
  needed.
* Readd packaging copyright/licensing to debian/copyright.
* Bump libphonon-dev Breaks/Replaces to << 4:4.6.0really4.4.4 for
  libphononexperimental-dev. experimental/avcaptureinterface.h header which
  used to be there up to 4.4.4 (see changelog below).
* Switch debian/rules build engine to dhmk (qt-kde-team/2/*):
  - build-depend on pkg-kde-tools >= 0.11;
  - port debian/rules to dhmk keeping it dh compatible as much as possible.
* Drop unused ${shlibs:Depends} from libphonon-dev and
  libphononexperimental-dev packages.
* Add README.Debian to phonon-backend-null package.
* Remove phonon-backend-null.lintian-overrides: phonon-backend-null is no
  longer and empty package due to README.Debian (see above).
* Release to unstable.

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 <QtCore>
22
 
#include <sys/types.h>
23
 
#include <gst/gst.h>
24
 
#include <gst/audio/gstaudiosink.h>
25
 
 
26
 
QT_BEGIN_NAMESPACE
27
 
 
28
 
namespace Phonon
29
 
{
30
 
namespace Gstreamer
31
 
{
32
 
 
33
 
G_BEGIN_DECLS
34
 
 
35
 
extern "C" {
36
 
 
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))
42
 
 
43
 
typedef struct _ArtsSink ArtsSink;
44
 
typedef struct _ArtsSinkClass ArtsSinkClass;
45
 
 
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,
52
 
    ARTS_P_BLOCKING = 6,
53
 
    ARTS_P_PACKET_SIZE = 7,
54
 
    ARTS_P_PACKET_COUNT = 8,
55
 
    ARTS_P_PACKET_SETTINGS = 9
56
 
};
57
 
 
58
 
typedef void *arts_stream_t;
59
 
 
60
 
struct _ArtsSink {
61
 
    GstAudioSink sink;
62
 
    arts_stream_t stream;
63
 
    int samplerate;
64
 
    int samplebits;
65
 
    int channels;
66
 
    int bytes_per_sample;
67
 
};
68
 
 
69
 
struct GConfClient;
70
 
struct GError;
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*);
77
 
 
78
 
struct _ArtsSinkClass {
79
 
    GstAudioSinkClass parent_class;
80
 
};
81
 
 
82
 
GType arts_sink_get_type (void);
83
 
}
84
 
G_END_DECLS
85
 
 
86
 
}
87
 
} //namespace Phonon::Gstreamer
88
 
 
89
 
QT_END_NAMESPACE
90
 
 
91
 
#endif // __ARTS_SINK_H__