Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
getMyDLLDirectory( ) and getMyDLLDirectory(CFStringRef bundleID)
No permission to create posts
November 18, 2015
9:05 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOnlineSmall Online

You can get the full path to the folder where your plugin is installed using these RAFX functions:

For Windows (RAFX, VST2, VST3) and MacOS (VST2, VST3) use

char* CPlugIn::getMyDLLDirectory( );

For AU only in MacOS use

char* CPlugIn::getMyDLLDirectory(CFStringRef bundleID)

- for the AU version you must supply the bundleID
- the term "DLL" does not exist in MacOS; in reality these functions return the path of where your "component" is stored

You will need this function if your plugin requires reading or writing files. For example, the Synth book sample-based plugins all use this function to load samples. You could also use it to load WAV IR files (see the ConvolveIt Bonus Project) from a sub-folder. Another use would be for loading and saving custom presets with preset information that is not a part of RackAFX.

Will

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online: W Pirkle
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Peter: 41

Derek: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 477

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 30

Topics: 483

Posts: 1877

Newest Members:

Jaggxn, sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 143

Administrators: Tom: 65, JD Young: 80, Will Pirkle: 0, W Pirkle: 143