rework ext/render
-#ifndef CLAP_EXT_RENDER_H
-# define CLAP_EXT_RENDER_H
+#pragma once
#include "../clap.h"
extern "C" {
#endif
-enum clap_plugin_render_mode
-{
+enum clap_plugin_render_mode {
/* Default setting, used to play "realtime". */
CLAP_RENDER_REALTIME = 0,
@@ -26,22 +24,18 @@ enum clap_plugin_render_mode
* with realtime settings and you render with offline settings, then
* you might not get the sound you expected.
*/
-struct clap_plugin_render
-{
+struct clap_plugin_render {
/* Sets the plugin render mode, while the plugin is deactivated.
* Returns true on success, false otherwise.
* On failure the render mode is unchanged.
- * [audio-thread] */
- bool (*set_render_mode)(struct clap_plugin *plugin,
- enum clap_plugin_render_mode mode);
+ * [main-thread] */
+ bool (*set_render_mode)(struct clap_plugin *plugin, enum clap_plugin_render_mode mode);
/* Gets the current rendering mode, can be set anytime.
- * [audio-thread] */
+ * [thread-safe,block-free] */
enum clap_plugin_render_mode (*get_render_mode)(struct clap_plugin *plugin);
};
#ifdef __cplusplus
}
#endif
\ No newline at end of file
-
-#endif /* !CLAP_EXT_RENDER_H */
