validateAudioPlugin
Test MATLAB source code for audio plugin
Description
validateAudioPlugin generates and runs a
Test Bench Procedure that exercises your
audio plugin class.classname
validateAudioPlugin
specifies options to modify the default Test Bench Procedure.options classname
Examples
validateAudioPlugin audiopluginexample.Echo
Checking plug-in class 'audiopluginexample.Echo'... passed. Generating testbench file 'testbench_Echo.m'... done. Running testbench... passed. Generating mex file 'testbench_Echo_mex.mexw64'... done. Running mex testbench... passed. Deleting testbench. Ready to generate audio plug-in.
validateAudioPlugin -nomex audiopluginexample.Echo
Checking plug-in class 'audiopluginexample.Echo'... passed. Generating testbench file 'testbench_Echo.m'... done. Running testbench... passed. Skipping mex. Deleting testbench.
validateAudioPlugin -keeptestbench audiopluginexample.Echo
Checking plug-in class 'audiopluginexample.Echo'... passed. Generating testbench file 'testbench_Echo.m'... done. Running testbench... passed. Generating mex file 'testbench_Echo_mex.mexw64'... done. Running mex testbench... passed. Keeping testbench. Ready to generate audio plug-in.
Two test benches are saved to your current folder:
testbench_Echo.mtestbench_Echo_mex.mexw64
validateAudioPlugin -keeptestbench -nomex audiopluginexample.Echo
Checking plug-in class 'audiopluginexample.Echo'... passed. Generating testbench file 'testbench_Echo.m'... done. Running testbench... passed. Skipping mex. Keeping testbench.
One test bench is saved to your current folder:
testbench_Echo.m
Input Arguments
Options to modify test bench procedure, specified as -nomex,
-keeptestbench, or -audioconfig
cfg. Options can be specified together or separately, and in
any order.
You can also specify these options and validate plugins using the
generateAudioPlugin user
interface (UI).
Option | generateAudioPlugin UI
Setting | Description |
|---|---|---|
-nomex | Clear the Run a MEX version of the test bench option | Do not generate and run a MEX version of the test bench file. This option significantly reduces run time of the test bench procedure. |
-keeptestbench | Save test benches to output folder | Save the generated test benches to the current folder. In
the generateAudioPlugin UI, the test
benches are saved to the folder specified by
Output folder. |
-audioconfig
| Coder Configuration section | Specify deep learning and code replacement
configuration for coder. See |
Name of the plugin class to validate. The plugin class must derive from
either the audioPlugin class or the audioPluginSource class. The
validateAudioPlugin function exercises an instance
of the specified plugin class.
You can specify the plugin class to validate by specifying its class name or file name. For example, the following syntaxes perform equivalent operations:
validateAudioPlugin myPluginvalidateAudioPlugin myPlugin.m
If you want to specify the plugin class by file name, and your plugin class is inside a package, you must specify the package as a file path. For example, the following syntaxes perform equivalent operations:
validateAudioPlugin myPluginPackage.myPluginvalidateAudioPlugin +myPluginPackage/myPlugin.m
Limitations
The validateAudioPlugin function is compatible with Windows® and Mac operating systems. It is not compatible with Linux®.
More About
The validateAudioPlugin function uses dynamic testing to
find common audio plugin programming mistakes not found by the static checks
performed by generateAudioPlugin. The function:
Runs a subset of error checks performed by
generateAudioPlugin.Generates and runs a MATLAB® test bench to exercise the class.
Generates and runs a MEX version of the test bench.
Removes the generated test benches.
If the plugin class fails testing, step 4 is automatically omitted. To debug your plugin, step through the saved generated test bench.
If you use the -keeptestbench option, or
if an error occurs during validation, the test bench files are saved
to your current folder.
Output File Name | Output File Type | Output File Name With File Extension |
|---|---|---|
| MATLAB |
|
| MEX |
The MEX-file extension depends on your operating system. |
Version History
Introduced in R2016a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)