annotate audacious/softvolume.h @ 921:2d7a46b743cb trunk

[svn] Updated german translation by Tarsonis, closes bug #459.
author chainsaw
date Sun, 09 Apr 2006 12:17:02 -0700
parents cb178e5ad177
children f12d7e208b43
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 /* XMMS - Software volume managment.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 * Copyright (C) 2001-2003 Matthieu Sozeau
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 * Original implementation from a patch by Tomas Simonaitis <haden@homelan.lt>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 * the Free Software Foundation; either version 2 of the License, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 * (at your option) any later version.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 * GNU General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 * along with this program; if not, write to the Free Software
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 #ifndef SOFTVOLUME_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 #define SOFTVOLUME_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 #include "plugin.h" /* glib and AFomat definition */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 struct _SoftVolumeConfig {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 gboolean enabled;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 gint volume_left;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 gint volume_right;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 typedef struct _SoftVolumeConfig SoftVolumeConfig;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 /**************************************************************************
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 * Functions to read/write a particular soft volume configuration.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 * If section is NULL, the global ("xmms") section is used.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 **************************************************************************/
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 void soft_volume_load(const gchar * section, SoftVolumeConfig * c);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 void soft_volume_save(SoftVolumeConfig * c, const gchar * section);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 /**************************************************************************
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 * Functions to set the volume and get the current volume
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 **************************************************************************/
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 void soft_volume_set(SoftVolumeConfig * c, gint l, gint r);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 void soft_volume_get(SoftVolumeConfig * c, gint * l, gint * r);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 /**************************************************************************
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 * Modify the buffer according to volume settings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 **************************************************************************/
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 void soft_volume_effect(SoftVolumeConfig * c,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 gpointer data, AFormat format, gint length);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 #endif