What is KVR Audio? | Submit News | Advertise | Developer Account

Options (Affects News & Product results only):

OS:
Format:
Include:
Quick Search KVR

"Quick Search" KVR Audio's Product Database, News Items, Developer Listings, Forum Topics and videos here. For advanced Product Database searching please use the full product search. For the forum you can use the phpBB forum search.

To utilize the power of Google you can use the integrated Google Site Search.

Products 0

Developers 0

News 0

Forum 0

Videos 0

Search  

How do plugins handle imported audio files?

DSP, Plug-in and Host development discussion.

Moderator: Moderators (Main)

millenliam
KVRer
 
8 posts since 20 Jul, 2011, from Cardiff, UK

Postby millenliam; Tue Dec 18, 2012 6:50 am How do plugins handle imported audio files?

Hey all,
I'm about to start making an instrument plugin that allows the user to import audio files which can be triggered and manipulated using MIDI data.

I was wondering how plugins of this nature generally handle the location of the imported audio file. I like the idea that when the user adds the file to the plugin it creates a copy of it within a 'project' directory of some sort, similar to that of when you import audio files into a DAW project.
Is that a common way for plugins to behave?
Robin from www.rs-met.com
KVRAF
 
3648 posts since 8 Mar, 2004, from Berlin, Germany

Postby Robin from www.rs-met.com; Tue Dec 18, 2012 7:03 am

i use relative paths with respect to the plugin-dll. that's plain and simple and sufficient for those little single-cycles that i currently need to import. if you have a huge amount of samples, it is probably more user-friendly to let the user specify a library path. i don't currently do that, but if i would, i would maintain this library-path in a preferences file which itself should be in the same directory as the plugin dll (or some subfolder thereof). as for creating your own copies in a project folder: i don't think that there's a way to inquire the project folder from the DAW.
Image
millenliam
KVRer
 
8 posts since 20 Jul, 2011, from Cardiff, UK

Postby millenliam; Tue Dec 18, 2012 7:25 am

Robin from www.rs-met.com wrote:as for creating your own copies in a project folder: i don't think that there's a way to inquire the project folder from the DAW.

I thought as much. It would be nice, but I'd imagine it would complicate things when the DAW tries to do certain things, for example, removing unused audio files.
The idea of creating a global audio files directory for the plugin seems like a good way of doing it though.

Moderator: Moderators (Main)

Return to DSP and Plug-in Development