MATLAB: Am I unable to set persistent settings for audioTestBench UI

audioAudio Toolboxaudiodevicereaderaudiodevicewritersystemtoolbox

I'm using the audioTestBench app to tune an audio plugin. Before launching the app, I create a custom instance of a plugin class and then launch audioTestBench with the custom instance as an argument. When the app launches, I modify certain properties on the audioTestBench GUI and then close it. When I relaunch the app, I notice that the settings have been replaced to the default and my changes have vanished. What can I do to make the changes persist?

Best Answer

The settings accessible via the Input or Output configuration dialogs are expected to persist starting in MATLAB R2018a. For any later releases, the settings should definitely persist across audioTestBench sessions. The only exception to this are the "Output" settings driven by the input/object under test; these will not persist. They are always dynamically set before every audioTestBench run. For example, SampleRate is always dependent on the input, and gets propagated to the Object Under Test and to the Output. Therefore, the changes made to the audioDeviceWriter are not expected to persist. Additionally, we do not have an API to access properties of audioTestBench.