Comments (4)
Have a look at how SharpSoundDevice (a C# VST2 solution I used to use before I wrote AudioPlugSharp) does it:
In particular:
public static void DockWinFormsPanel(System.Windows.Forms.Control panel, IntPtr vstWindow)
{
System.Windows.Forms.Application.EnableVisualStyles();
panel.Top = 0;
panel.Left = 0;
SetParent(panel.Handle, vstWindow);
}
It should be as simple as that to link up a Window Forms control with the parent window handle from the VST.
from audioplugsharp.
I have not tried to get it to work in MacOS. I suspect there would be two issues. First, AudioPlugSharp uses C++/CLR for bootstrapping the managed code. This is Windows-only, so a different solution would be required for MacOS. Second, a different UI integration would be required.
As for WinForms, I do not have an example, but it should be relatively easy to do. You would need to create a WinForms context from the window pointer the VST host passes instead of a WPF context.
from audioplugsharp.
I was suspicious about the UI integration indeed, but didn't know about C++/CLR, thanks for the clarification !
All right, thanks then, I'll try to make a simple working example in WinForms !
from audioplugsharp.
Ah thanks that's a great example !
from audioplugsharp.
Related Issues (20)
- A Couple Of Issues HOT 2
- A Notification HOT 1
- Plugins not showing in DAW HOT 9
- Parameter changes not propagated back to DAW UI HOT 2
- Unable to compile example projects on VS2022 on Windows 11 machine HOT 4
- GetPluginFactory not exported HOT 3
- WPFExample not able to load in Ableton HOT 5
- Advice on development flow HOT 2
- Change parameter definition at runtime HOT 1
- What would it take to integrate this into a Maui app on WinUI-3, and then extend it for ios and android? HOT 1
- Loading multiple plugins built with different versions of .net framework crashes the host. HOT 2
- Rebuild all leads to a missing .vst3 error HOT 16
- VST3 WpfExample not recognized in Cubase HOT 8
- HandleNoteOn / HandleNoteOff / HandleParameterChange does not get called or is inconsistent HOT 8
- Some Build Issues HOT 24
- Upgraded WPFExample HOT 2
- Looking For Advice HOT 3
- A Clarification HOT 22
- Using Other Controls HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audioplugsharp.