-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
99 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
use crate::plugin::*; | ||
|
||
use std::ffi::{c_char, CStr}; | ||
|
||
pub const CLAP_EXT_CONFIGURABLE_AUDIO_PORTS: &CStr = | ||
unsafe { CStr::from_bytes_with_nul_unchecked(b"clap.configurable-audio-ports.draft0\0") }; | ||
|
||
#[repr(C)] | ||
#[derive(Debug, Copy, Clone)] | ||
pub struct clap_audio_port_configuration_request { | ||
pub is_best_effort: bool, | ||
pub is_input: bool, | ||
pub port_index: u32, | ||
pub channel_count: u32, | ||
pub port_type: *const c_char, | ||
pub port_details: *const c_char, | ||
} | ||
|
||
unsafe impl Send for clap_audio_port_configuration_request {} | ||
unsafe impl Sync for clap_audio_port_configuration_request {} | ||
|
||
#[repr(C)] | ||
#[derive(Debug, Copy, Clone)] | ||
pub struct clap_plugin_configurable_audio_ports { | ||
pub is_port_configurable: Option< | ||
unsafe extern "C" fn(plugin: *const clap_plugin, is_input: bool, port_index: u32) -> bool, | ||
>, | ||
pub request_configuration: Option< | ||
unsafe extern "C" fn( | ||
plugin: *const clap_plugin, | ||
requests: *const clap_audio_port_configuration_request, | ||
request_count: u32, | ||
) -> bool, | ||
>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use crate::plugin::*; | ||
|
||
use std::ffi::{c_char, c_void, CStr}; | ||
|
||
pub const CLAP_EXT_EXTENSIBLE_AUDIO_PORTS: &CStr = | ||
unsafe { CStr::from_bytes_with_nul_unchecked(b"clap.extensible-audio-ports.draft0\0") }; | ||
|
||
#[repr(C)] | ||
#[derive(Debug, Copy, Clone)] | ||
pub struct clap_plugin_extensible_audio_ports { | ||
pub add_port: Option< | ||
unsafe extern "C" fn( | ||
plugin: *const clap_plugin, | ||
is_input: bool, | ||
channel_count: u32, | ||
port_type: *const c_char, | ||
port_details: *const c_void, | ||
) -> bool, | ||
>, | ||
pub remove_port: Option< | ||
unsafe extern "C" fn( | ||
plugin: *const clap_plugin, | ||
is_input: bool, | ||
channel_count: u32, | ||
) -> bool, | ||
>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters