Standalone app and AudioMidiSettings and AudioDeviceManager

That was the ticket!!! Thank you!

So, for those following along at home, this is how to use your own StandaloneWindow and still call the showAudioSettingsDialog from inside the editor:

  • Make copies of juce_StandaloneFilterApp.cpp and juce_StandaloneFilterwindow.h and place them in your source tree.

  • In your StandaloneFilterApp.cpp, comment out the chunk of #includes at the top and replace them with #include <JuceHeader.h>

  • In your StandaloneFilterApp.cpp, change #include "juce_StandaloneFilterWindow.h" to
    #include "StandaloneFilterWindow.h"

  • In your editor class, add: #include "StandaloneFilterApp.cpp and include "StandaloneFilterwindow.h"

  • In your jucer file, in Preprocessor Definitions, add: JUCE_USE_CUSTOM_PLUGIN_STANDALONE_APP=1

  • Style your window however you like in StandaloneFilterWindow.h

  • If you want to show the audioSettingsDialog from your own editor code instead of the Options button that’s in the original, use this from inside your editor:

    • if (JUCEApplication::isStandaloneApp())
      
    • {
      
    •     StandalonePluginHolder::getInstance()->showAudioSettingsDialog();
      
    • }
      

Thank you @wtsnz and @crandall1 for all your help!

15 Likes