summaryrefslogtreecommitdiff
path: root/rotord/rotor.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-05-08 17:44:30 +0100
committerTim Redfern <tim@herge.(none)>2013-05-08 17:44:30 +0100
commitbf0e0a3384ded09e135322e2333b2773ea633d87 (patch)
treed40e4a21f6677aa6e6b3091b6f68cc853f19c461 /rotord/rotor.cpp
parentba982775255912035f4b84ae63e1f38bdbb611f4 (diff)
operator+= Image
Diffstat (limited to 'rotord/rotor.cpp')
-rwxr-xr-xrotord/rotor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp
index 33cd3f5..4ed8de4 100755
--- a/rotord/rotor.cpp
+++ b/rotord/rotor.cpp
@@ -17,6 +17,7 @@ Node_factory::Node_factory(){
add_type("invert",new Invert());
add_type("video_cycler",new Video_cycler());
add_type("luma_levels",new Luma_levels());
+ add_type("echo_trails",new Echo_trails());
}
bool Signal_input::connect(Signal_node* source) {
@@ -77,7 +78,7 @@ int Audio_thumbnailer::process_frame(uint8_t *_data,int samples_in_frame){
for (int i=0;i<channels;i++) {
unsigned int this_val=0;
for (int j=0;j<bytes;j++) {
-// this_val+=_data[(in_sample*stride)+(i*bytes)+j]<<(j*8);
+ this_val+=_data[(in_sample*stride)+(i*bytes)+j]<<(j*8);
}
//convert from integer data format - i.e s16p - to audio signal in -1..1 range
//presume 16 bits for now...