summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-08-27 13:38:41 +0100
committerTim Redfern <tim@eclectronics.org>2013-08-27 13:38:41 +0100
commitc8d6dd7e23c5ccb9f6118c47cf02c306b180a592 (patch)
tree1872d02e9684d0801d2954c77510c78c77253223
parentc85e9dfbeeb447332545d40ac52c07630fbb9121 (diff)
starting preview node feature
-rw-r--r--rotord/src/rendercontext.cpp2
-rwxr-xr-xrotord/src/rotor.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/rotord/src/rendercontext.cpp b/rotord/src/rendercontext.cpp
index cbce728..47ff9c1 100644
--- a/rotord/src/rendercontext.cpp
+++ b/rotord/src/rendercontext.cpp
@@ -353,7 +353,7 @@ bool Render_context::load_audio(const string &filename,vector<Audio_processor*>
int rate = loader.codecContext->sample_rate;
int samples = ((loader.formatContext->duration + 5000)*rate)/AV_TIME_BASE; //why 5000 more?
int channels= loader.codecContext->channels;
- int bits = 16; //??? loader.codecContext->bits_per_raw_sample;
+ int bits = 16; //???why can't we read this loader.codecContext->bits_per_raw_sample;
for (auto p: processors) {
if(!p->init(channels,bits,samples,rate) ){
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h
index b47dcc0..616fb5d 100755
--- a/rotord/src/rotor.h
+++ b/rotord/src/rotor.h
@@ -236,7 +236,6 @@ namespace Rotor {
return output(frame);
}
virtual const Image *output(const Frame_spec &frame)=0;
- Image *get_preview(const Frame_spec &frame);
Image image;
private:
float image_time; //? could be used to detect image reuse?