Every time I start up my Juce application, it runs some initialization process that takes about 10 seconds to complete. This is a bit of a hassle when I’m just trying to debug something quick.
Does anyone know how I can turn it off? Even if I have to sacrifice some of my program’s functionality, it would be nice if I could do this just during debugging.
It’s a StandalonePluginApp, and I’m using Juce 8 on Windows.
During the initialization process, I get this repeating debug message:
avcore\audiocore\client\audioclient\audioclientcore.cpp(469)\AUDIOSES.DLL!00007FF961F911DA: (caller: 00007FF961F4605F) ReturnHr(1) tid(2194) 887D0003
…and here is the stack trace:
[External Code]
> ....exe!juce::WasapiClasses::WASAPIDeviceBase::tryFormat(const juce::WasapiClasses::WASAPIDeviceBase::AudioSampleFormat sampleFormat, juce::IAudioClient * clientToUse, juce::WASAPIDeviceMode mode, int newNumChannels, double newSampleRate, unsigned long newMixFormatChannelMask) Line 776 C++
....exe!juce::WasapiClasses::WASAPIDeviceBase::queryMaxNumChannels(juce::IAudioClient * clientToUse) Line 840 C++
....exe!juce::WasapiClasses::WASAPIDeviceBase::WASAPIDeviceBase(const juce::ComSmartPtr<juce::IMMDevice> & d, juce::WASAPIDeviceMode mode) Line 460 C++
....exe!juce::WasapiClasses::WASAPIOutputDevice::WASAPIOutputDevice(const juce::ComSmartPtr<juce::IMMDevice> & d, juce::WASAPIDeviceMode mode) Line 1090 C++
....exe!juce::WasapiClasses::WASAPIAudioIODevice::createDevices() Line 1677 C++
....exe!juce::WasapiClasses::WASAPIAudioIODevice::initialise() Line 1241 C++
....exe!juce::WasapiClasses::WASAPIAudioIODeviceType::createDevice(const juce::String & outputDeviceName, const juce::String & inputDeviceName) Line 1798 C++
....exe!juce::AudioDeviceManager::setAudioDeviceSetup(const juce::AudioDeviceManager::AudioDeviceSetup & newSetup, bool treatAsChosenDevice) Line 774 C++
....exe!juce::AudioDeviceManager::initialiseDefault(const juce::String & preferredDefaultDeviceName, const juce::AudioDeviceManager::AudioDeviceSetup * preferredSetupOptions) Line 400 C++
....exe!juce::AudioDeviceManager::initialise(int numInputChannelsNeeded, int numOutputChannelsNeeded, const juce::XmlElement * xml, bool selectDefaultDeviceOnFailure, const juce::String & preferredDefaultDeviceName, const juce::AudioDeviceManager::AudioDeviceSetup * preferredSetupOptions) Line 322 C++
....exe!juce::StandalonePluginHolder::reloadAudioDeviceState(bool enableAudioInput, const juce::String & preferredDefaultDeviceName, const juce::AudioDeviceManager::AudioDeviceSetup * preferredSetupOptions) Line 351 C++
....exe!juce::StandalonePluginHolder::setupAudioDevices(bool enableAudioInput, const juce::String & preferredDefaultDeviceName, const juce::AudioDeviceManager::AudioDeviceSetup * preferredSetupOptions) Line 677 C++
....exe!juce::StandalonePluginHolder::init(bool enableAudioInput, const juce::String & preferredDefaultDeviceName) Line 118 C++
....exe!juce::StandalonePluginHolder::StandalonePluginHolder(juce::PropertySet * settingsToUse, bool takeOwnershipOfSettings, const juce::String & preferredDefaultDeviceName, const juce::AudioDeviceManager::AudioDeviceSetup * preferredSetupOptions, const juce::Array<juce::StandalonePluginHolder::PluginInOuts,juce::DummyCriticalSection,0> & channels, bool shouldAutoOpenMidiDevices) Line 112 C++
....exe!ContextSequencingEnvironmentApp::ContextSequencingEnvironmentApp() Line 27 C++
....exe!juce_CreateApplication() Line 14 C++
....exe!juce::JUCEApplicationBase::main() Line 268 C++
....exe!WinMain(HINSTANCE__ * __formal, HINSTANCE__ * __formal, char * __formal, int __formal) Line 205 C++
[External Code]
