|
Packit Service |
ed5168 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
|
Packit Service |
ed5168 |
*
|
|
Packit Service |
ed5168 |
* Copyright (C) 2008 Red Hat, Inc.
|
|
Packit Service |
ed5168 |
*
|
|
Packit Service |
ed5168 |
* This program is free software; you can redistribute it and/or modify
|
|
Packit Service |
ed5168 |
* it under the terms of the GNU General Public License as published by
|
|
Packit Service |
ed5168 |
* the Free Software Foundation; either version 2 of the License, or
|
|
Packit Service |
ed5168 |
* (at your option) any later version.
|
|
Packit Service |
ed5168 |
*
|
|
Packit Service |
ed5168 |
* This program is distributed in the hope that it will be useful,
|
|
Packit Service |
ed5168 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
ed5168 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
ed5168 |
* GNU General Public License for more details.
|
|
Packit Service |
ed5168 |
*
|
|
Packit Service |
ed5168 |
* You should have received a copy of the GNU General Public License
|
|
Packit Service |
ed5168 |
* along with this program; if not, write to the Free Software
|
|
Packit Service |
ed5168 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
Packit Service |
ed5168 |
*
|
|
Packit Service |
ed5168 |
*/
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
#ifndef __GVC_CHANNEL_MAP_H
|
|
Packit Service |
ed5168 |
#define __GVC_CHANNEL_MAP_H
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
#include <glib-object.h>
|
|
Packit Service |
ed5168 |
#include <gvc-pulseaudio-fake.h>
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
G_BEGIN_DECLS
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
#define GVC_TYPE_CHANNEL_MAP (gvc_channel_map_get_type ())
|
|
Packit Service |
ed5168 |
#define GVC_CHANNEL_MAP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_CHANNEL_MAP, GvcChannelMap))
|
|
Packit Service |
ed5168 |
#define GVC_CHANNEL_MAP_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_CHANNEL_MAP, GvcChannelMapClass))
|
|
Packit Service |
ed5168 |
#define GVC_IS_CHANNEL_MAP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_CHANNEL_MAP))
|
|
Packit Service |
ed5168 |
#define GVC_IS_CHANNEL_MAP_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_CHANNEL_MAP))
|
|
Packit Service |
ed5168 |
#define GVC_CHANNEL_MAP_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_CHANNEL_MAP, GvcChannelMapClass))
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
typedef struct GvcChannelMapPrivate GvcChannelMapPrivate;
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
typedef struct
|
|
Packit Service |
ed5168 |
{
|
|
Packit Service |
ed5168 |
GObject parent;
|
|
Packit Service |
ed5168 |
GvcChannelMapPrivate *priv;
|
|
Packit Service |
ed5168 |
} GvcChannelMap;
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
typedef struct
|
|
Packit Service |
ed5168 |
{
|
|
Packit Service |
ed5168 |
GObjectClass parent_class;
|
|
Packit Service |
ed5168 |
void (*volume_changed) (GvcChannelMap *channel_map, gboolean set);
|
|
Packit Service |
ed5168 |
} GvcChannelMapClass;
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
enum {
|
|
Packit Service |
ed5168 |
VOLUME,
|
|
Packit Service |
ed5168 |
BALANCE,
|
|
Packit Service |
ed5168 |
FADE,
|
|
Packit Service |
ed5168 |
LFE,
|
|
Packit Service |
ed5168 |
NUM_TYPES
|
|
Packit Service |
ed5168 |
};
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
GType gvc_channel_map_get_type (void);
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
GvcChannelMap * gvc_channel_map_new (void);
|
|
Packit Service |
ed5168 |
guint gvc_channel_map_get_num_channels (const GvcChannelMap *map);
|
|
Packit Service |
ed5168 |
const gdouble * gvc_channel_map_get_volume (GvcChannelMap *map);
|
|
Packit Service |
ed5168 |
gboolean gvc_channel_map_can_balance (const GvcChannelMap *map);
|
|
Packit Service |
ed5168 |
gboolean gvc_channel_map_can_fade (const GvcChannelMap *map);
|
|
Packit Service |
ed5168 |
gboolean gvc_channel_map_has_position (const GvcChannelMap *map,
|
|
Packit Service |
ed5168 |
pa_channel_position_t position);
|
|
Packit Service |
ed5168 |
#define gvc_channel_map_has_lfe(x) gvc_channel_map_has_position (x, PA_CHANNEL_POSITION_LFE)
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
const char * gvc_channel_map_get_mapping (const GvcChannelMap *map);
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
G_END_DECLS
|
|
Packit Service |
ed5168 |
|
|
Packit Service |
ed5168 |
#endif /* __GVC_CHANNEL_MAP_H */
|