mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-19 09:17:54 +01:00
Each command class registers itself
This commit is contained in:
@@ -21,6 +21,7 @@ parameters. It is for development purposes.
|
||||
|
||||
#include "../Audacity.h"
|
||||
#include "Demo.h"
|
||||
#include "LoadCommands.h"
|
||||
|
||||
#include <float.h>
|
||||
|
||||
@@ -35,6 +36,8 @@ parameters. It is for development purposes.
|
||||
const ComponentInterfaceSymbol DemoCommand::Symbol
|
||||
{ XO("Demo") };
|
||||
|
||||
namespace{ BuiltinCommandsModule::Registration< DemoCommand > reg; }
|
||||
|
||||
bool DemoCommand::DefineParams( ShuttleParams & S ){
|
||||
S.Define( delay, wxT("Delay"), 1.0f, 0.001f, FLT_MAX, 1.0f );
|
||||
S.Define( decay, wxT("Decay"), 0.5f, 0.0f, FLT_MAX, 1.0f );
|
||||
|
||||
Reference in New Issue
Block a user