Skip to content

Commit

Permalink
RustAudio#184 Add example how to create a PluginParameterInfo value
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Apr 2, 2022
1 parent 5f03914 commit 6f82742
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6f82742

Please sign in to comment.