Debian Codegraph @

audio/SoundPlugin_proc.h

raw symbols SCIP
1 /* Copyright 2012 Kjetil S. Matheussen
2
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU General Public License
5 as published by the Free Software Foundation; either version 2
6 of the License, or (at your option) any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
16
17
18 #ifndef AUDIO_SOUNDPLUGIN_PROC_H
19 #define AUDIO_SOUNDPLUGIN_PROC_H
20
21 enum ValueType{
22 PLUGIN_STORED_TYPE,
23 PLUGIN_NONSTORED_TYPE
24 };
25
26 enum SetValueType{
27 PLUGIN_STORE_VALUE,
28 PLUGIN_DONT_STORE_VALUE
29 };
30
31 enum WhereToGetValue{
32 VALUE_FROM_PLUGIN,
33 VALUE_FROM_STORAGE
34 };
35
36 extern LANGSPEC SoundPlugin *PLUGIN_create_plugin(const SoundPluginType *plugin_type);
37 extern LANGSPEC void PLUGIN_delete_plugin(SoundPlugin *plugin);
38 extern LANGSPEC void PLUGIN_update_smooth_values(SoundPlugin *plugin);
39
40 extern LANGSPEC int PLUGIN_get_effect_format(const struct SoundPluginType *plugin_type, int effect_num);
41 extern LANGSPEC int PLUGIN_get_effect_num(const struct SoundPluginType *plugin_type, const char *effect_name);
42 extern LANGSPEC const char *PLUGIN_get_effect_name(const struct SoundPluginType *plugin_type, int effect_num);
43 extern LANGSPEC const char *PLUGIN_get_effect_description(const struct SoundPluginType *plugin_type, int effect_num);
44 extern LANGSPEC void PLUGIN_get_display_value_string(struct SoundPlugin *plugin, int effect_num, char *buffer, int buffersize);
45 extern LANGSPEC void PLUGIN_set_effect_value(struct SoundPlugin *plugin, int64_t time, int effect_num, float value, enum ValueType value_type, enum SetValueType set_type);
46 extern LANGSPEC float PLUGIN_get_effect_value(struct SoundPlugin *plugin, int effect_num, enum WhereToGetValue where);
47
48 extern LANGSPEC hash_t *PLUGIN_get_effects_state(SoundPlugin *plugin);
49 extern LANGSPEC hash_t *PLUGIN_get_state(SoundPlugin *plugin);
50
51 extern LANGSPEC void PLUGIN_create_effects_from_state(SoundPlugin *plugin, hash_t *effects);
52 extern LANGSPEC SoundPlugin *PLUGIN_create_from_state(hash_t *state);
53
54 extern LANGSPEC void PLUGIN_reset(SoundPlugin *plugin);
55 extern LANGSPEC void PLUGIN_reset_one_effect(SoundPlugin *plugin, int effect_num);
56
57 #endif // AUDIO_SOUNDPLUGIN_PROC_H