From c8d6dd7e23c5ccb9f6118c47cf02c306b180a592 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 27 Aug 2013 13:38:41 +0100 Subject: starting preview node feature --- rotord/src/rendercontext.cpp | 2 +- rotord/src/rotor.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'rotord/src') 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 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? -- cgit v1.2.3