clap_sys/ext/
render.rs

1use crate::{cstr, plugin::*};
2
3use std::ffi::CStr;
4
5pub const CLAP_EXT_RENDER: &CStr = cstr!("clap.render");
6
7pub const CLAP_RENDER_REALTIME: clap_plugin_render_mode = 0;
8pub const CLAP_RENDER_OFFLINE: clap_plugin_render_mode = 1;
9
10pub type clap_plugin_render_mode = i32;
11
12#[repr(C)]
13#[derive(Debug, Copy, Clone)]
14pub struct clap_plugin_render {
15    pub has_hard_realtime_requirement:
16        Option<unsafe extern "C" fn(plugin: *const clap_plugin) -> bool>,
17    pub set: Option<
18        unsafe extern "C" fn(plugin: *const clap_plugin, mode: clap_plugin_render_mode) -> bool,
19    >,
20}