const std::vector<double>& ATKJUCEAudioProcessor::get_last_slice(std::size_t index, bool& process) { if(index == 0) { process = process_slice(bufferFilterL, windowedDataL); return windowedDataL; } else { process = process_slice(bufferFilterR, windowedDataR); return windowedDataR; } }
int phase5(FILE **in, FILE **references, int in_count, int with_range, char *suffix, struct zip_info *zip_info) { long long size; int slices; int zipnum,written_tiles; struct tile_head *th,*th2; create_tile_hash(); th=tile_head_root; size=0; slices=0; fprintf(stderr, "Maximum slice size "LONGLONG_FMT"\n", slice_size); while (th) { if (size + th->total_size > slice_size) { fprintf(stderr,"Slice %d is of size "LONGLONG_FMT"\n", slices, size); size=0; slices++; } size+=th->total_size; th=th->next; } if (size) fprintf(stderr,"Slice %d is of size "LONGLONG_FMT"\n", slices, size); th=tile_head_root; size=0; slices=0; while (th) { th2=tile_head_root; while (th2) { th2->process=0; th2=th2->next; } size=0; while (th && size+th->total_size < slice_size) { size+=th->total_size; th->process=1; th=th->next; } /* process_slice() modifies zip_info, but need to retain old info */ zipnum=zip_get_zipnum(zip_info); written_tiles=process_slice(in, references, in_count, with_range, size, suffix, zip_info); zip_set_zipnum(zip_info, zipnum+written_tiles); slices++; } return 0; }