pipe and exec child process from vst plug-in?
-
- KVRer
- 3 posts since 13 Mar, 2012
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.
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.
- KVRian
- 775 posts since 30 Nov, 2008
And you're already trying to implement inter-process communication for real time audio processing? That is quite ambitious!catshirt wrote:i'm new to c++ and vst development.
My Open Source:
Beast, rippled, DSPFilters, LayerEffects, SimpleDJ
Beast, rippled, DSPFilters, LayerEffects, SimpleDJ
-
- KVRer
- Topic Starter
- 3 posts since 13 Mar, 2012
heh, perhaps in over my head. incidentally, it's the only reason i'm trying to pick either up at the moment.thevinn wrote:And you're already trying to implement inter-process communication for real time audio processing? That is quite ambitious!catshirt wrote:i'm new to c++ and vst development.
-
- KVRAF
- 1940 posts since 16 Aug, 2004 from Vienna, Austria
-
- KVRer
- Topic Starter
- 3 posts since 13 Mar, 2012
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.
sorry- os x 10.7, xcode 4.3- which is using Apple LLVM 3.1 by default. hope that helps, thanks!arakula wrote:And that's on... what? Windows or OSX? Which compiler?
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.
