From 59b1132d3b728bde83863f423ab84c2d13f53f38 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 28 Jan 2022 18:10:28 +0100 Subject: [PATCH] Mark hyperlinks in doc comments --- src/plugin.rs | 2 +- src/wrapper/util.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/plugin.rs b/src/plugin.rs index 1a065e64..3fa55c68 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -97,7 +97,7 @@ pub trait Vst3Plugin: Plugin { const VST3_CLASS_ID: [u8; 16]; /// One or more categories, separated by pipe characters (`|`), up to 127 characters. Anything /// logner than that will be truncated. See the VST3 SDK for examples of common categories: - /// https://github.com/steinbergmedia/vst3_pluginterfaces/blob/2ad397ade5b51007860bedb3b01b8afd2c5f6fba/vst/ivstaudioprocessor.h#L49-L90 + /// const VST3_CATEGORIES: &'static str; } diff --git a/src/wrapper/util.rs b/src/wrapper/util.rs index 3ff91e96..14aafa6c 100644 --- a/src/wrapper/util.rs +++ b/src/wrapper/util.rs @@ -19,10 +19,7 @@ use std::os::raw::c_char; use vst3_sys::vst::TChar; use widestring::U16CString; -/// A Rabin fingerprint based string hash compatible with JUCE's implementation. -/// -/// https://github.com/juce-framework/JUCE/blob/0abbba3b18c3263137eeaeaa11c917a3425ce585/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp#L585-L601 -/// https://github.com/juce-framework/JUCE/blob/46ea879739533ca0cdc689b967edfc5390c46ef7/modules/juce_core/text/juce_String.cpp#L541-L556 +/// A Rabin fingerprint based string hash for parameter ID strings. pub fn hash_param_id(id: &str) -> u32 { let mut hash: u32 = 0; for char in id.bytes() {