auval doens't allow window creation

Discuss issues relating to audio plugins

auval doens't allow window creation

Postby mdsp » Tue Oct 25, 2011 5:13 pm

hi,

I'd like to display a progress bar when reloading a plugin state.
It works fine as long as the host allows opening the user interface.
However in auval I get an exception when creating the window.

How can I detect whether I can create a window?
mdsp
JUCE UberWeenie
 
Posts: 277
Joined: Fri Oct 29, 2004 12:00 pm
Location: Paris

Re: auval doens't allow window creation

Postby jules » Tue Oct 25, 2011 6:15 pm

There's no way to know what the host wants you to do.

Surely the "correct" approach would be that if your plugin's editor is visible, use that to show the progress, and if not, don't. Opening other windows is a bad thing to do if you can avoid it.
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: auval doens't allow window creation

Postby mdsp » Wed Oct 26, 2011 10:20 am

sure, if the editor is visible that's easy. but most of the time, when reloading a session, the editor is not visible and this is potentially the longest operation where a progress bar would be most wanted.
mdsp
JUCE UberWeenie
 
Posts: 277
Joined: Fri Oct 29, 2004 12:00 pm
Location: Paris

Re: auval doens't allow window creation

Postby Shlomi » Wed Oct 26, 2011 10:33 am

Maybe you can start another "messages" process when needed that will be a standalone application and will show the needed messages.
User avatar
Shlomi
JUCE UberWeenie
 
Posts: 395
Joined: Tue Dec 28, 2010 2:06 pm

Re: auval doens't allow window creation

Postby jules » Wed Oct 26, 2011 11:54 am

I really think that if you editor's not visible, you really shouldn't try to show anything on the screen.
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: auval doens't allow window creation

Postby mdsp » Wed Oct 26, 2011 5:04 pm

I really think that if you editor's not visible, you really shouldn't try to show anything on the screen.


That's what we do now, but users are complaining about long loading times and not knowing how much time it will take.
The progress bar is already working in 99% of the situations, but the remaing 1% is still stopping us from adding that feature. :(
mdsp
JUCE UberWeenie
 
Posts: 277
Joined: Fri Oct 29, 2004 12:00 pm
Location: Paris

Re: auval doens't allow window creation

Postby Franky47 » Thu Nov 10, 2011 11:27 am

If the problem happens only on auval, you can detect it using PluginHostType (you might need to add auval), and display the progess in stdout instead of a window. Though this could also fail in other command-line based tools (or when a DAW is scanning for plugins)..
This statement is false.
User avatar
Franky47
JUCE Geek
 
Posts: 44
Joined: Tue Mar 29, 2011 5:15 pm
Location: France


Return to Audio Plugins

Who is online

Users browsing this forum: falkTX and 1 guest