is loading a lot slower than the release executable from 1.2.6 (release build, not mine) and was wondering if anyone knew what was making the program load dog slow (over a minute) - could it be something on the ASIO side (my guess) or perhaps a flag I missed? I used Microsoft 2008 VC++ for the build, wxWidgets 2.8.11, taglib 1.6.3; I gave up on cygwin and MSVC++ 2010.
In other news I edited AudioIO.cpp to use DefaultProjectSampleRate instead of the highestSampleRate in HandleDeviceChange() in my build . My EMU soundcard uses Patchmix and every time the application asked for the maximum I'd have to reload the settings in Patchmix only to have to reload them again a few seconds later when the app set things back to the project default rate. It only happens on the initial load, but if you don't set things in exactly the right order the app crashes (e.g. the app calls for 192000, you update patchmix and then click Monitor Input and then set patchmix to the project rate, the program will likely crash.) I'm not sure what the original intent was initializing with the max rate, but for anyone using Audacity with Patchmix, the modest code change below is a sanity saving measure:
// rather than set the playback format to the max value, set it to the project value
// right before the first Pa_OpenStream call in HandleDeviceChange() (File: AudioIO.cpp)
int defaultSampleRate;
gPrefs->Read(wxT("/SamplingRate/DefaultProjectSampleRate"),
&defaultSampleRate, GetOptimalSupportedSampleRate());
and changing the 3 Pa_OpenStream calls to use defaultSampleRate instead of highestSampleRate, e.g:
error = Pa_OpenStream(&stream,
&captureParameters, &playbackParameters,
defaultSampleRate, paFramesPerBufferUnspecified,
paClipOff | paDitherOff,
audacityAudioCallback, NULL);
Also, I'd like to say thank you to Gale and all the other folks who work on Audacity. You are awesome!
