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
0bb9a7d7
Commit
0bb9a7d7
authored
12 years ago
by
jsiegle
Browse files
Options
Downloads
Patches
Plain Diff
Fixed problems with variable initialization
parent
161dcdb2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/Processors/GenericProcessor.cpp
+2
-1
2 additions, 1 deletion
Source/Processors/GenericProcessor.cpp
Source/Processors/RecordNode.cpp
+4
-2
4 additions, 2 deletions
Source/Processors/RecordNode.cpp
with
6 additions
and
3 deletions
Source/Processors/GenericProcessor.cpp
+
2
−
1
View file @
0bb9a7d7
...
...
@@ -30,7 +30,8 @@ GenericProcessor::GenericProcessor(const String& name_) :
isEnabled
(
true
),
saveOrder
(
-
1
),
loadOrder
(
-
1
),
nextAvailableChannel
(
0
),
currentChannel
(
-
1
),
wasConnected
(
false
),
nullParam
(
"VOID"
,
false
,
-
1
)
wasConnected
(
false
),
nullParam
(
"VOID"
,
false
,
-
1
),
audioAndRecordNodeStartChannel
(
0
)
{
}
...
...
This diff is collapsed.
Click to expand it.
Source/Processors/RecordNode.cpp
+
4
−
2
View file @
0bb9a7d7
...
...
@@ -25,7 +25,8 @@
#include
"ProcessorGraph.h"
RecordNode
::
RecordNode
()
:
GenericProcessor
(
"Record Node"
),
isRecording
(
false
),
isProcessing
(
false
)
:
GenericProcessor
(
"Record Node"
),
isRecording
(
false
),
isProcessing
(
false
),
timestamp
(
0
),
signalFilesShouldClose
(
false
)
{
...
...
@@ -316,7 +317,8 @@ float RecordNode::getFreeSpace()
void
RecordNode
::
writeContinuousBuffer
(
float
*
data
,
int
nSamples
,
int
channel
)
{
// scale the data appropriately
// scale the data appropriately -- currently just getting it into the right
// range; actually need to take into account the gain of each channel
for
(
int
n
=
0
;
n
<
nSamples
;
n
++
)
{
*
(
continuousDataFloatBuffer
+
n
)
=
*
(
data
+
n
)
/
10000.0
f
;
...
...
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