Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plugin-GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yehaojie
plugin-GUI
Commits
05454116
Commit
05454116
authored
12 years ago
by
Josh Siegle
Browse files
Options
Downloads
Patches
Plain Diff
Added comments to ExampleProcessor
parent
8a954b90
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Processors/ExampleProcessor.h
+25
-1
25 additions, 1 deletion
Source/Processors/ExampleProcessor.h
with
25 additions
and
1 deletion
Source/Processors/ExampleProcessor.h
+
25
−
1
View file @
05454116
...
...
@@ -44,18 +44,42 @@ class ExampleProcessor : public GenericProcessor
{
public:
/** The class constructor, used to initialize any members. */
ExampleProcessor
();
/** The class destructor, used to deallocate memory */
~
ExampleProcessor
();
/** Determines whether the processor is treated as a source.
Re-implemented from GenericProcessor.h */
bool
isSource
()
{
return
false
;}
/** Determines whether the processor is treated as a sink.
Re-implemented from GenericProcessor.h */
bool
isSink
()
{
return
false
;}
/** Defines the functionality of the processor.
The process method is called every time a new data buffer is available.
Processors can either use this method to add new data, manipulate existing
data, or send data to an external target (such as a display or other hardware).
Continuous signals arrive in the "buffer" variable, event data (such as TTLs
and spikes) is contained in the "events" variable, and "nSamples" holds the
number of continous samples in the current buffer (which may differ from the
size of the buffer).
*/
void
process
(
AudioSampleBuffer
&
buffer
,
MidiBuffer
&
events
,
int
&
nSamples
);
/** Any variables used by the "process" function _must_ be modified only through
this method while data acquisition is active. If they are modified in any
other way, the application will crash. */
void
setParameter
(
int
parameterIndex
,
float
newValue
);
private
:
// private
variable
s and methods go here
// private
member
s and methods go here
//
// e.g.:
//
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment