mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 13:16:44 +01:00
21 lines
507 B
Rust
21 lines
507 B
Rust
use crate::*;
|
|
|
|
/// Supported plugin formats.
|
|
#[derive(Default)]
|
|
pub enum PluginKind {
|
|
#[default] None,
|
|
LV2(LV2Plugin),
|
|
VST2 { instance: ::vst::host::PluginInstance },
|
|
VST3,
|
|
}
|
|
|
|
impl Debug for PluginKind {
|
|
fn fmt (&self, f: &mut Formatter<'_>) -> std::result::Result<(), Error> {
|
|
write!(f, "{}", match self {
|
|
Self::None => "(none)",
|
|
Self::LV2(_) => "LV2",
|
|
Self::VST2{..} => "VST2",
|
|
Self::VST3 => "VST3",
|
|
})
|
|
}
|
|
}
|