Added an option for restricting the WAV file format.
Fixes for OSX Process::openDocument when launching bundles with parameters.