~ubuntu-branches/ubuntu/wily/mate-settings-daemon/wily

« back to all changes in this revision

Viewing changes to plugins/media-keys/cut-n-paste/gvc-mixer-stream.h

  • Committer: Package Import Robot
  • Author(s): John Paul Adrian Glaubitz, Martin Wimpress, John Paul Adrian Glaubitz
  • Date: 2015-08-16 16:35:32 UTC
  • mfrom: (10.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20150816163532-34zcev57w1c1bbv6
Tags: 1.10.1-1
[ Martin Wimpress ]
* debian/rules:
  + Remove obsolete build options.

[ John Paul Adrian Glaubitz ]
* Fix minor typo in debian/control (missing hyphen).
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2
 
 *
3
 
 * Copyright (C) 2008 Red Hat, Inc.
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify
6
 
 * it under the terms of the GNU General Public License as published by
7
 
 * the Free Software Foundation; either version 2 of the License, or
8
 
 * (at your option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
18
 
 *
19
 
 */
20
 
 
21
 
#ifndef __GVC_MIXER_STREAM_H
22
 
#define __GVC_MIXER_STREAM_H
23
 
 
24
 
#include <glib-object.h>
25
 
#include <pulse/pulseaudio.h>
26
 
 
27
 
#include "gvc-channel-map.h"
28
 
 
29
 
#ifdef __cplusplus
30
 
extern "C" {
31
 
#endif
32
 
 
33
 
#define GVC_TYPE_MIXER_STREAM         (gvc_mixer_stream_get_type ())
34
 
#define GVC_MIXER_STREAM(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_MIXER_STREAM, GvcMixerStream))
35
 
#define GVC_MIXER_STREAM_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_MIXER_STREAM, GvcMixerStreamClass))
36
 
#define GVC_IS_MIXER_STREAM(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_MIXER_STREAM))
37
 
#define GVC_IS_MIXER_STREAM_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_MIXER_STREAM))
38
 
#define GVC_MIXER_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_MIXER_STREAM, GvcMixerStreamClass))
39
 
 
40
 
typedef struct GvcMixerStreamPrivate GvcMixerStreamPrivate;
41
 
 
42
 
typedef struct
43
 
{
44
 
        GObject                parent;
45
 
        GvcMixerStreamPrivate *priv;
46
 
} GvcMixerStream;
47
 
 
48
 
typedef struct
49
 
{
50
 
        GObjectClass           parent_class;
51
 
 
52
 
        /* vtable */
53
 
        gboolean (*push_volume)     (GvcMixerStream *stream,
54
 
                                     gpointer *operation);
55
 
        gboolean (*change_is_muted) (GvcMixerStream *stream,
56
 
                                     gboolean        is_muted);
57
 
        gboolean (*change_port)     (GvcMixerStream *stream,
58
 
                                     const char     *port);
59
 
} GvcMixerStreamClass;
60
 
 
61
 
typedef struct
62
 
{
63
 
        char *port;
64
 
        char *human_port;
65
 
        guint priority;
66
 
} GvcMixerStreamPort;
67
 
 
68
 
GType               gvc_mixer_stream_get_type        (void);
69
 
 
70
 
pa_context *        gvc_mixer_stream_get_pa_context  (GvcMixerStream *stream);
71
 
guint               gvc_mixer_stream_get_index       (GvcMixerStream *stream);
72
 
guint               gvc_mixer_stream_get_id          (GvcMixerStream *stream);
73
 
const GvcChannelMap *gvc_mixer_stream_get_channel_map(GvcMixerStream *stream);
74
 
const GvcMixerStreamPort *gvc_mixer_stream_get_port  (GvcMixerStream *stream);
75
 
const GList *       gvc_mixer_stream_get_ports       (GvcMixerStream *stream);
76
 
gboolean            gvc_mixer_stream_change_port     (GvcMixerStream *stream,
77
 
                                                      const char     *port);
78
 
 
79
 
pa_volume_t         gvc_mixer_stream_get_volume      (GvcMixerStream *stream);
80
 
gdouble             gvc_mixer_stream_get_decibel     (GvcMixerStream *stream);
81
 
gboolean            gvc_mixer_stream_push_volume     (GvcMixerStream *stream);
82
 
pa_volume_t         gvc_mixer_stream_get_base_volume (GvcMixerStream *stream);
83
 
 
84
 
gboolean            gvc_mixer_stream_get_is_muted    (GvcMixerStream *stream);
85
 
gboolean            gvc_mixer_stream_get_can_decibel (GvcMixerStream *stream);
86
 
gboolean            gvc_mixer_stream_change_is_muted (GvcMixerStream *stream,
87
 
                                                      gboolean        is_muted);
88
 
gboolean            gvc_mixer_stream_is_running      (GvcMixerStream *stream);
89
 
const char *        gvc_mixer_stream_get_name        (GvcMixerStream *stream);
90
 
const char *        gvc_mixer_stream_get_icon_name   (GvcMixerStream *stream);
91
 
const char *        gvc_mixer_stream_get_description (GvcMixerStream *stream);
92
 
const char *        gvc_mixer_stream_get_application_id (GvcMixerStream *stream);
93
 
gboolean            gvc_mixer_stream_is_event_stream (GvcMixerStream *stream);
94
 
gboolean            gvc_mixer_stream_is_virtual      (GvcMixerStream *stream);
95
 
gint                gvc_mixer_stream_get_card_index  (GvcMixerStream *stream);
96
 
 
97
 
/* private */
98
 
gboolean            gvc_mixer_stream_set_volume      (GvcMixerStream *stream,
99
 
                                                      pa_volume_t     volume);
100
 
gboolean            gvc_mixer_stream_set_decibel     (GvcMixerStream *stream,
101
 
                                                      gdouble         db);
102
 
gboolean            gvc_mixer_stream_set_is_muted    (GvcMixerStream *stream,
103
 
                                                      gboolean        is_muted);
104
 
gboolean            gvc_mixer_stream_set_can_decibel (GvcMixerStream *stream,
105
 
                                                      gboolean        can_decibel);
106
 
gboolean            gvc_mixer_stream_set_name        (GvcMixerStream *stream,
107
 
                                                      const char     *name);
108
 
gboolean            gvc_mixer_stream_set_description (GvcMixerStream *stream,
109
 
                                                      const char     *description);
110
 
gboolean            gvc_mixer_stream_set_icon_name   (GvcMixerStream *stream,
111
 
                                                      const char     *name);
112
 
gboolean            gvc_mixer_stream_set_is_event_stream (GvcMixerStream *stream,
113
 
                                                          gboolean is_event_stream);
114
 
gboolean            gvc_mixer_stream_set_is_virtual  (GvcMixerStream *stream,
115
 
                                                      gboolean is_event_stream);
116
 
gboolean            gvc_mixer_stream_set_application_id (GvcMixerStream *stream,
117
 
                                                         const char *application_id);
118
 
gboolean            gvc_mixer_stream_set_base_volume (GvcMixerStream *stream,
119
 
                                                      pa_volume_t     base_volume);
120
 
gboolean            gvc_mixer_stream_set_port        (GvcMixerStream *stream,
121
 
                                                      const char     *port);
122
 
gboolean            gvc_mixer_stream_set_ports       (GvcMixerStream *stream,
123
 
                                                      GList          *ports);
124
 
gboolean            gvc_mixer_stream_set_card_index  (GvcMixerStream *stream,
125
 
                                                      gint            card_index);
126
 
 
127
 
#ifdef __cplusplus
128
 
}
129
 
#endif
130
 
 
131
 
#endif /* __GVC_MIXER_STREAM_H */