![]() |
Delphi-Form Handle Übergabe an VST-Plugin mittels "deprecated Carbon GUI calls"
es geht dabei um eine App in Delphi 10.1.2 Berlin für macOS – ein Editor für Midifiles. Zur Zeit soll die Unterstützung für VST-Instrumente hinzugefügt werden. Dabei wird die BASS Lib und die verfügbare libBASS_VST.dylib benutzt. Um die Parameter der VSTi-Plugins zu verändern braucht es eine Delphi-Form worauf die Plugins den Editor zeichnen sollen. Die dylib bietet die Funktion BASS_VST_EmbedEditor, wo ein Handle zur Form verlangt wird, aber als Vorgabe ist die Benutzung von „deprecated Carbon GUI Calls“.
Weiß jemand wie dass geht? Was ich bis jetzt probiert habe:
Delphi-Quellcode:
Beim dritten oder vierten Mal wird in der VSTiForm das "richtige" gezeigt, aber es reagiert nicht auf Maus-Events.
lNSWindow := WindowHandleToPlatform(VSTiForm.Handle).Wnd;
lEditorEmbeded := BASS_VST_EmbedEditor(MainVSTiHandle, lNSWindow.windowRef); Bin für jede Hilfe sehr dankbar. Victor |
AW: Delphi-Form Handle Übergabe an VST-Plugin mittels "deprecated Carbon GUI calls"
Zitat:
![]() |
AW: Delphi-Form Handle Übergabe an VST-Plugin mittels "deprecated Carbon GUI calls"
danke für den Hinweis!
Ist aber für Windows. Bei Windows gibt es kein Problem denn die Funktion BASS_VST_EmbedEditor kommt sehr gut zurecht mit dem von Delphi geliefertem Form.Handle. FireMonkey arbeitet unter macOS mit "Cacao" und nicht mit "Carbon", daher das Problem denn FireMonkey gibt so ein Handle zu einem NSWindow - Cacao und nicht Carbon. Die große Frage ist - wie kommt man unter FireMonkey zu "Carbon"? |
AW: Delphi-Form Handle Übergabe an VST-Plugin mittels "deprecated Carbon GUI calls"
|
AW: Delphi-Form Handle Übergabe an VST-Plugin mittels "deprecated Carbon GUI calls"
|
AW: Delphi-Form Handle Übergabe an VST-Plugin mittels "deprecated Carbon GUI calls"
Zitat:
|
AW: Delphi-Form Handle Übergabe an VST-Plugin mittels "deprecated Carbon GUI calls"
Zitat:
Scheint der richtige Weg zu sein, nur dass dort nur Tools von Apple gezeigt/verwendet werden. Die große Frage ist, wie erreiche ich dies mit Delphi Berlin? Gibt es eventuell in Berlin Zugang zur Carbon API? |
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:14 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz