COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 10-24-2016, 11:35 PM   #1
earlevel
Human being with feelings
 
Join Date: Dec 2015
Posts: 331
Default A little bug in AAX, PLUG_MFR_PT

Examples imply that the developer can gives multiple versions for the manufacturer name, allowing the host (Pro Tools) to choose a version of appropriate size. The AAX library code makes this assumption too, calling SetManufacturerName for each newline-delineated substring. But this is not correct, apparently.

First, the AAX SDK uses "Add..." for parameters than can have multiple versions of different string lengths. For these, the SDK docs specifically note that the function can be called multiple times to set multiple versions. Note this parameter corresponds to a "Set..." function (SetManufacturerName), and the docs do not indicate that it can be called multiple times.

For instance, in the IPlugCOntrols example:

#define PLUG_MFR_PT "AcmeInc\nAcmeInc\nAcme"
#define PLUG_NAME_PT "IPlugControls\nIPCT"

The first line (I'm sure it was intended to be "Acme Inc\nAcmeInc\nAcme") will only result in the manufacturer name set to "Acme" in Pro Tools, corresponding to the last substring—the last call to SetManufacturerName. (I had used '#define PLUG_MFR_PT "Line 6\nLine6\nLin6"', which resulted in an effects menu of "Lin6" when PT prefs were set to sort effects by manufacturer. The correct def should be '#define PLUG_MFR_PT "Line 6"'.)

The second line will work as intended, setting two versions of the plugin name, "IPlugControls" and "IPCT".
earlevel is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:41 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.