pipe and exec child process from vst plug-in?

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

hi,

sorry if this question is naive... i'm new to c++ and vst development.

what i'd like to do is spawn a child process and pipe the input/output from my vst plug-in. the goal here is to offset the actual audio processing to some other process.

i ran into some issues. for instance, i created a thread which calls execlp()- and then creates a file on my desktop using ofstream. when i run my plug-in in Live, the file is created, but the process from execlp() is seemingly never run. suggesting the thread is executing fine (even with some disk permissions); just that execlp is noop for some reason...? or am i way off?

thanks! great site.
Last edited by catshirt on Tue Mar 13, 2012 5:11 am, edited 1 time in total.

Post

catshirt wrote:i'm new to c++ and vst development.
And you're already trying to implement inter-process communication for real time audio processing? That is quite ambitious!

Post

thevinn wrote:
catshirt wrote:i'm new to c++ and vst development.
And you're already trying to implement inter-process communication for real time audio processing? That is quite ambitious!
heh, perhaps in over my head. incidentally, it's the only reason i'm trying to pick either up at the moment. :)

Post

And that's on... what? Windows or OSX? Which compiler?
"Until you spread your wings, you'll have no idea how far you can walk." Image

Post

AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
arakula wrote:And that's on... what? Windows or OSX? Which compiler?
sorry- os x 10.7, xcode 4.3- which is using Apple LLVM 3.1 by default. hope that helps, thanks!

i uploaded my main file to pastebin for example (http://pastebin.com/Rb4P2vT4). it's nearly identical to the vstxsynth demo, just with an added pthread call. in this example, test1.txt and test3.txt are created when i run my vst, but not test2. i realize how silly this logging method is, but xcode debugger was behaving strangely.

Post Reply

Return to “DSP and Plugin Development”