From 6f827426bca5be7fa5f3b93c276a591a040e13fd Mon Sep 17 00:00:00 2001 From: Benjamin Klum Date: Sat, 2 Apr 2022 15:41:08 +0200 Subject: [PATCH] #184 Add example how to create a PluginParameterInfo value --- src/plugin.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugin.rs b/src/plugin.rs index 5c0b8c0f..5dd6f521 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -384,6 +384,14 @@ impl Default for Info { } /// A structure representing information about a specific plug-in parameter. +/// +/// # Example +/// +/// ```no_run +/// # use vst::plugin::{PluginParameterCharacter, PluginParameterInfo}; +/// let mut info = PluginParameterInfo::default(); +/// info.character = PluginParameterCharacter::Switch; +/// ``` #[derive(Clone, Debug)] #[non_exhaustive] pub struct PluginParameterInfo {