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  

Hosting Slate VCC, FG-X

DSP, Plug-in and Host development discussion.

Moderator: Moderators (Main)

mystran
KVRAF
 
4155 posts since 11 Feb, 2006, from Helsinki, Finland

Postby mystran; Fri Jan 10, 2014 7:08 pm Re: Hosting Slate VCC, FG-X

zabukowski wrote:Finally, I've found the cause for this misbehavior:

Moving processReplacing call to the main "audio callback" function of my host solves mentioned problems. Previously it was called from a separate, synchronized thread.

Looks like processing call not being 100% bound to audio interrupt is causing anomalies with GUI of these plugins.


That sounds pretty weird, considering most hosts these days will process on multiple cores, which implies processing in multiple threads. Maybe there's some problem with your threads .. especially on Windows you have a dozen ways to create threads, and the "correct" one is almost certainly _beginthreadex (maybe _beginthread works too, can't remember) and while some code (especially simple DSP code) might not care, the other options can skip CRT init or such (specifically CreateThread(Ex) would be a terrible idea).
Image <- plugins | forum
zabukowski
KVRist
 
92 posts since 6 May, 2004, from Ljubljana, Slovenia, EU

Postby zabukowski; Fri Jan 10, 2014 10:51 pm Re: Hosting Slate VCC, FG-X

mystran wrote:
zabukowski wrote:Finally, I've found the cause for this misbehavior:

Moving processReplacing call to the main "audio callback" function of my host solves mentioned problems. Previously it was called from a separate, synchronized thread.

Looks like processing call not being 100% bound to audio interrupt is causing anomalies with GUI of these plugins.


That sounds pretty weird, considering most hosts these days will process on multiple cores, which implies processing in multiple threads. Maybe there's some problem with your threads .. especially on Windows you have a dozen ways to create threads, and the "correct" one is almost certainly _beginthreadex (maybe _beginthread works too, can't remember) and while some code (especially simple DSP code) might not care, the other options can skip CRT init or such (specifically CreateThread(Ex) would be a terrible idea).


I am using QT's thread classes.

It looks like it doesn't matter in which thread actual processing is done, what matters is that plugin's processReplacing must be called 100% in timing to have its GUI updated properly, otherwise it gets rather confused. So the key is when, not where. Note, that audio is processed correctly in any case.

As I said, VCC and FG-X are the only plugins which expose this kind of problem. I've talked with Fabrice Gabriel about this, as well. He didn't go much into details, but mentioned some kind of "buffer problems", which will be fixed in the future updates of these plugins.

Zabukowski
mystran
KVRAF
 
4155 posts since 11 Feb, 2006, from Helsinki, Finland

Postby mystran; Sat Jan 11, 2014 12:39 am Re: Hosting Slate VCC, FG-X

zabukowski wrote:It looks like it doesn't matter in which thread actual processing is done, what matters is that plugin's processReplacing must be called 100% in timing to have its GUI updated properly, otherwise it gets rather confused. So the key is when, not where. Note, that audio is processed correctly in any case.


Oh ok.. sorry about it then. =)
Image <- plugins | forum
zabukowski
KVRist
 
92 posts since 6 May, 2004, from Ljubljana, Slovenia, EU

Postby zabukowski; Fri Jan 17, 2014 12:42 pm Re: Hosting Slate VCC, FG-X

I am slowly & nicely progressing with my VST hosting :)

But ... I've just encountered another misbehaviour ...

Using Slate's VTM, tape wheels are not moving in x64 version. But, they are working fine with 32 bit version !??!

Any ideas or hints ? I see plugin is constantly sending audioMasterGetTime to host. I currently don't handle this opcode. Is this required ?

Looks like Slate's plugins will provide me a bunch of special situations ...

Thanks!
zabukowski
KVRist
 
92 posts since 6 May, 2004, from Ljubljana, Slovenia, EU

Postby zabukowski; Sat Jan 18, 2014 2:05 am Re: Hosting Slate VCC, FG-X

Solved, set some with vsttimeinfo flags, now it works in x86/x64 ...
metamorphosis
KVRAF
 
3426 posts since 7 Jan, 2005, from Hamilton, New Zealand

Postby metamorphosis; Sat Jan 18, 2014 2:27 am Re:

zabukowski wrote:I am experimenting with VST hosting in my app. So far I've managed to load and process audio thru many diff plugins (PSP, IKMultimedia, Nebula etc. etc.) without noticeable problems.

I have a problem with Slate VCC and FG-X, though. They load ok, controls are working. The only thing is that meters are not working, regardless of input signal.

VTM is surprisingly working :)

Does anyone know - do Slate plugins require some kind of special treatment ??

Thanks in advance!
Zabukowski


VBC certainly does - doesn't work on most older hosts, even in vst 2.4 form...
XP/Vista/Win7/Win8 Optimisation, DAW Tips, AudioXP - XPFree
I made an oddly-acoustic album and an electronica thing and an alt-metal doohicky...
Previous

Moderator: Moderators (Main)

Return to DSP and Plug-in Development