| 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_Hcxx . . $ `audio/SoundPlugin_proc.h:19:9`! |
| 20 | |
| 21 | enum ValueTypecxx . . $ ValueType#{ |
| 22 | PLUGIN_STORED_TYPEcxx . . $ PLUGIN_STORED_TYPE., |
| 23 | PLUGIN_NONSTORED_TYPEcxx . . $ PLUGIN_NONSTORED_TYPE. |
| 24 | }; |
| 25 | |
| 26 | enum SetValueTypecxx . . $ SetValueType#{ |
| 27 | PLUGIN_STORE_VALUEcxx . . $ PLUGIN_STORE_VALUE., |
| 28 | PLUGIN_DONT_STORE_VALUEcxx . . $ PLUGIN_DONT_STORE_VALUE. |
| 29 | }; |
| 30 | |
| 31 | enum WhereToGetValuecxx . . $ WhereToGetValue#{ |
| 32 | VALUE_FROM_PLUGINcxx . . $ VALUE_FROM_PLUGIN., |
| 33 | VALUE_FROM_STORAGEcxx . . $ VALUE_FROM_STORAGE. |
| 34 | }; |
| 35 | |
| 36 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! SoundPlugin *PLUGIN_create_plugin(const SoundPluginType *plugin_type); |
| 37 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! void PLUGIN_delete_plugin(SoundPlugin *plugin); |
| 38 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! void PLUGIN_update_smooth_values(SoundPlugin *plugin); |
| 39 | |
| 40 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! int PLUGIN_get_effect_format(const struct SoundPluginType *plugin_type, int effect_num); |
| 41 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! int PLUGIN_get_effect_num(const struct SoundPluginType *plugin_type, const char *effect_name); |
| 42 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! const char *PLUGIN_get_effect_name(const struct SoundPluginType *plugin_type, int effect_num); |
| 43 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! const char *PLUGIN_get_effect_description(const struct SoundPluginType *plugin_type, int effect_num); |
| 44 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! void PLUGIN_get_display_value_string(struct SoundPlugin *plugin, int effect_num, char *buffer, int buffersize); |
| 45 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! void PLUGIN_set_effect_value(struct SoundPlugin *plugin, int64_t time, int effect_num, float value, enum ValueTypecxx . . $ ValueType# value_type, enum SetValueTypecxx . . $ SetValueType# set_type); |
| 46 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! float PLUGIN_get_effect_value(struct SoundPlugin *plugin, int effect_num, enum WhereToGetValuecxx . . $ WhereToGetValue# where); |
| 47 | |
| 48 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! hash_tcxx . . $ hash_t# *PLUGIN_get_effects_state(SoundPlugin *plugin); |
| 49 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! hash_tcxx . . $ hash_t# *PLUGIN_get_state(SoundPlugin *plugin); |
| 50 | |
| 51 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! void PLUGIN_create_effects_from_state(SoundPlugin *plugin, hash_tcxx . . $ hash_t# *effects); |
| 52 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! SoundPlugin *PLUGIN_create_from_state(hash_tcxx . . $ hash_t# *state); |
| 53 | |
| 54 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! void PLUGIN_reset(SoundPlugin *plugin); |
| 55 | extern LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! void PLUGIN_reset_one_effect(SoundPlugin *plugin, int effect_num); |
| 56 | |
| 57 | #endif // AUDIO_SOUNDPLUGIN_PROC_H |