Commit Graph

74 Commits

Author SHA1 Message Date
Xaymar de16483b55 Host 0x17: Query which thread is currently active
Quite useful for threading and memory safety.
2025-08-08 02:54:42 +02:00
Xaymar b5310b8922 Host 0x2D/0x2E/0x2F: Controllable crash/memory corruption via p_ptr
Doesn't appear useful so far.
2025-08-08 02:54:37 +02:00
Xaymar 098f059834 Host 0x1F/0x31: Query current input/output speaker arrangement
Seems to be completely unsupported in VST 2.4 hosts and all prior hosts seem to just return the exact data we output from VST_EFFECT_OPCODE_GET_SPEAKER_ARRANGEMENT.
2025-08-08 02:54:36 +02:00
Xaymar ca9d9de24e Host 0x15/0x16: Query which vst_effect_t is attached to an input/output stream
Basically unsupported in almost all hosts so not very useful for optimization purposes.
2025-08-08 02:54:36 +02:00
Xaymar 596cf21b71 Host 0x13/0x14: Current input/output sample latency 2025-08-08 02:54:35 +02:00
Xaymar 8204f06ca7 Host 0x11/0x12: Current effect sample rate and block size
Some hosts can randomly "forget" to send these updates to the effect and that's why we can ask the host for them. Most modern ones though do properly handle all of this.
2025-08-08 02:54:35 +02:00
Xaymar 64ddb953db Host 0x27: Query current host language
Seems to use a custom format instead of something like ISO 639 which predates VST 2.x by quite a long time. Reinventing the wheel goes back a long time it seems.
2025-08-08 02:54:34 +02:00
Xaymar 5cef1f300a Host 0x29: Retrieves the path of the currently loaded effect
Unsure what this does with container plug-ins. Does it return the container file?
2025-08-08 02:54:34 +02:00
Xaymar 9f1a61b603 Host 0x30: Some kind of path query related programs and banks
Mostly just crashes hosts but in rare cases actually works to retrieve a path to something.
2025-08-08 02:54:33 +02:00
Xaymar ac4572eff4 Host 0x2A: Plug-in requests a full refresh of information
A plug-in may call this if they believe important information has changed such as the number of parameters. This seems to work together with VST_HOST_OPCODE_IO_MODIFIED.
2025-08-08 02:54:33 +02:00
Xaymar 14688491dc Host 0x2B/0x2C: Intended behavior appears to be locking/unlocking
These calls seem to prevent compatible hosts from emitting parameter changes entirely. This is like a file lock where it prevents other processes from modifying things they shouldn't.
2025-08-08 02:54:32 +02:00
Xaymar a140b58016 Initial work towards event handling support (#3)
The VST 2.x API seems to support some sort of event handling functionality used to implement MIDI (#2) and External Processing (#5). The vst_event_t structure is currently unclear.
2025-08-08 02:54:31 +02:00
Xaymar 2551d06b0c Add "editFile" to vst_host_supports_t
This one looked like a function lookup for a LoadLibrary call. Turns out it's an actual support query!
2025-08-08 02:54:31 +02:00
Xaymar e81a1f91e2 Host 0x1E: Request a resize of the window containing our custom editor
The host is not required to accept our request and may ignore it.
2025-08-08 02:54:30 +02:00
Xaymar 0b608bec1f Slightly improve overall documentation 2025-08-08 02:54:30 +02:00
Xaymar e9fcf1408b Host 0x0E -> 0x0D: Missed one of the off-by-1 errors
This explains why my test code using the header wasn't working.
v0.3.4
2025-08-08 02:38:09 +02:00
Xaymar d23a117ecc Add editorconfig file for automatically trimming whitespace 2025-08-08 02:38:09 +02:00
Xaymar c9629ad8d3 Fix all host opcodes being offset by 1 or two v0.3.3 2025-08-08 01:54:21 +02:00
Xaymar 87b3e2bcfc Hopefully fix documentation not updating on push v0.3.2 2025-08-06 05:19:28 +02:00
Xaymar 9dd8de817f Update README 2025-08-06 05:18:17 +02:00
Xaymar 41a24b0f07 Mac OS exclusivity isn't an important thing either 2025-08-06 04:21:22 +02:00
Xaymar 0049af4720 VST version changes aren't important enough to warrant red boxes 2025-08-06 04:17:56 +02:00
Xaymar 35125a732b Various fixes for documentation 2025-08-06 04:14:15 +02:00
Xaymar 21998dbbc0 Fix wrong reference to VST_HOST where we wanted VST_EFFECT 2025-08-06 04:07:08 +02:00
Xaymar fa02ffef09 Fix incorrect type definition in vst.hpp 2025-08-06 04:06:23 +02:00
Xaymar ce354e3824 Fix duplicate definition of VST_EFFECT_OPCODE_43 2025-08-06 04:05:31 +02:00
Xaymar 5e65ee89ca Fix incorrect definition for vst_host_callback_t v0.3.1 2025-08-06 03:56:51 +02:00
Xaymar 3c7322c90d Oops: VST_EFFECT_OPCODE_PARAM_PROPERTIES is actually 0x38
Late night coding while sleepy tends to invite mistakes.
2025-08-06 03:46:49 +02:00
Xaymar 3beabeef6d Add vst.hpp to automatically generated docs 2025-08-06 03:33:52 +02:00
Xaymar 6a1e5be101 Automatically generate documentation for hosting via Github Pages
In addition to the extensive header documentation available lets also have doxygen generate proper HTML for the web.
2025-08-06 03:22:14 +02:00
Xaymar f5779515c2 More documentation improvements 2025-08-06 02:51:57 +02:00
Xaymar 4b0f52863f More documentation improvments 2025-08-06 02:29:41 +02:00
Xaymar b49fb7872d More C99 compat improvements and doxygen support 2025-08-06 00:49:20 +02:00
Xaymar 06245409e8 Improve documentation for speakers and vkey op-codes 2025-08-05 23:56:02 +02:00
Xaymar adc0352d59 Float parameters are sometimes required to be normalized within 0.0 and 1.0 2025-08-05 15:58:38 +02:00
Xaymar 86838d1e67 Add further documentation to vst_parameter_properties_t v0.3.0 2025-08-05 15:39:29 +02:00
Xaymar 1c13d4b88a Forgot to append the _t 2025-08-05 08:27:09 +02:00
Xaymar 31fde8b4c8 Fix C++ and C compilation errors
Now both languages should compile fully again. The whole string list is a bit hacky but it works.
2025-08-05 08:22:09 +02:00
Xaymar ddcca1549b Fix recently introduced C compatibility issues 2025-08-05 08:10:14 +02:00
Xaymar b7c86d3766 Better understanding of vst_effect_supports.bypass 2025-08-05 07:56:40 +02:00
Xaymar 33b3f9c9b6 More container related things. 2025-08-05 07:41:52 +02:00
Xaymar 7e5da0b551 Stream handling and some better documentation 2025-08-05 07:26:55 +02:00
Xaymar c8a0a3b129 Lots of progress on container plug-ins 2025-08-05 07:05:55 +02:00
Xaymar 1371dd8233 Lots of new host stuff discovered automatically. 2025-08-05 06:04:18 +02:00
Xaymar 9ec0cc6d39 Some op codes only happened on MacOS 2025-08-05 05:30:19 +02:00
Xaymar 9d44f308dc Stuff related to VST_EFFECT_OPCODE_SUPPORTS 2025-08-05 05:27:08 +02:00
Xaymar 519bb9d4a2 Add some more discovered things about effects 2025-08-05 05:21:04 +02:00
Xaymar 48d5070d63 Strictly follow proper naming conventions for types
Anything that creates a "type" must be suffixed by _t.
2025-08-05 04:40:03 +02:00
Xaymar 0e09d69e63 Fix incorrect description for vst_effect.num_params 2025-08-05 04:35:50 +02:00
Xaymar f79cab72c5 Explain why it's called unformatted chunk data 2025-08-05 04:35:02 +02:00