summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-03-25 13:45:18 +0000
committerTim Redfern <tim@herge.(none)>2013-03-25 13:45:18 +0000
commit8c59a7a79622519e3895fa2d3262d7a0a97468fd (patch)
tree1e31b0708266dfa1dfe655c0b7c027fdd8befadc
parent1ef20ee017b11272e6b241a40e3413becaf4c0d6 (diff)
much progress with audio format
-rwxr-xr-xrotord/rotor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h
index 132059f..651144c 100755
--- a/rotord/rotor.h
+++ b/rotord/rotor.h
@@ -359,14 +359,17 @@ namespace Rotor {
}
void init(int _channels,int _bits,int _samples) {
base_audio_processor::init(_channels,_bits,_samples);
- samples_per_column=samples/width();
+ samples_per_column=samples/width;
+ stored_data=new uint8_t[samples_per_column*channels*2];
}
bool process_frame(uint8_t *data,int samples){
return true;
}
uint8_t *data;
+ uint8_t *stored_data;
int height,width,samples_per_column;
+ int samples_left;
};
class Render_context: public Poco::Task { //Poco task object
//manages a 'patchbay'