diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-08-27 13:19:21 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-08-27 13:19:21 +0100 |
| commit | c85e9dfbeeb447332545d40ac52c07630fbb9121 (patch) | |
| tree | 7afd810a3f151f8cc3b4224e4dcb3a52c899bba5 /rotord/src/rotor.h | |
| parent | 150c9823e71a161e97003849cf8b2f55b21520bd (diff) | |
audio thumbnail vector data
Diffstat (limited to 'rotord/src/rotor.h')
| -rwxr-xr-x | rotord/src/rotor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index da1ac8a..b47dcc0 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -1229,16 +1229,20 @@ namespace Rotor { width=512; //fit data=new uint8_t[height*width]; memset(data,0,height*width); + vectordata =new float[width]; }; ~Audio_thumbnailer(){ delete[] data; + delete[] vectordata; }; Audio_thumbnailer* clone(map<string,string> &_settings) { return new Audio_thumbnailer();}; bool init(int _channels,int _bits,int _samples,int _rate); void cleanup(){}; int process_frame(uint8_t *data,int samples_in_frame); string print(); + void print_vector(xmlIO XML); uint8_t *data; + float *vectordata; int height,width,samples_per_column; int column,out_sample,sample,samples; int offset; |
