Mercurial > audlegacy
annotate src/audacious/equalizer_preset.h @ 4807:859ef55f062c
Don't crash on an invalid interface.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 16 Oct 2008 12:59:14 -0500 |
parents | a33facf19590 |
children |
rev | line source |
---|---|
4704
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
1 /* Audacious - Cross-platform multimedia player |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
2 * Copyright (C) 2005-2008 Audacious team |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
3 * |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
4 * This program is free software; you can redistribute it and/or modify |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
5 * it under the terms of the GNU General Public License as published by |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
6 * the Free Software Foundation; under version 3 of the License. |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
7 * |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
8 * This program is distributed in the hope that it will be useful, |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
11 * GNU General Public License for more details. |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
12 * |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
13 * You should have received a copy of the GNU General Public License |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
14 * along with this program. If not, see <http://www.gnu.org/licenses>. |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
15 * |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
16 * The Audacious team does not consider modular code linking to |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
17 * Audacious or using our public API to be a derived work. |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
18 */ |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
19 |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
20 #ifndef AUDACIOUS_EQUALIZER_PRESET_H |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
21 #define AUDACIOUS_EQUALIZER_PRESET_H |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
22 |
4711
a33facf19590
more work on seperating presets from legacy ui
Tomasz Mon <desowin@gmail.com>
parents:
4704
diff
changeset
|
23 #include "audacious/rcfile.h" |
a33facf19590
more work on seperating presets from legacy ui
Tomasz Mon <desowin@gmail.com>
parents:
4704
diff
changeset
|
24 |
4704
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
25 struct _EqualizerPreset { |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
26 gchar *name; |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
27 gfloat preamp, bands[10]; |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
28 }; |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
29 |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
30 typedef struct _EqualizerPreset EqualizerPreset; |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
31 |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
32 EqualizerPreset * equalizer_preset_new(const gchar * name); |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
33 void equalizer_preset_free(EqualizerPreset * preset); |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
34 GList * equalizer_read_presets(const gchar * basename); |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
35 void equalizer_write_preset_file(GList * list, const gchar * basename); |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
36 GList * import_winamp_eqf(VFSFile * file); |
4711
a33facf19590
more work on seperating presets from legacy ui
Tomasz Mon <desowin@gmail.com>
parents:
4704
diff
changeset
|
37 void save_preset_file(EqualizerPreset *preset, const gchar * filename); |
a33facf19590
more work on seperating presets from legacy ui
Tomasz Mon <desowin@gmail.com>
parents:
4704
diff
changeset
|
38 |
a33facf19590
more work on seperating presets from legacy ui
Tomasz Mon <desowin@gmail.com>
parents:
4704
diff
changeset
|
39 EqualizerPreset * equalizer_read_aud_preset(const gchar * filename); |
a33facf19590
more work on seperating presets from legacy ui
Tomasz Mon <desowin@gmail.com>
parents:
4704
diff
changeset
|
40 EqualizerPreset * load_preset_file(const gchar *filename); |
4704
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
41 |
3534e9edc168
and of course I forgot to add new files...
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
42 #endif |