- VFrame **temp_buffer;
- temp_buffer = new VFrame*[total_tracks()];
- for(int i = 0; i < total_tracks(); i++)
- {
- temp_buffer[i] = realtime_buffers[i][0];
- }
-
- int result = values[module]->process_loop(realtime_buffers[module], write_length);
- delete [] temp_buffer;
+// VFrame **temp_buffer;
+// temp_buffer = new VFrame*[total_tracks()];
+// for(int i = 0; i < total_tracks(); i++)
+// {
+// temp_buffer[i] = realtime_buffers[i][0];
+// }
+
+ int ibfr = module % file->asset->layers;
+ int result = values[module]->process_loop(realtime_buffers[ibfr], write_length);
+// delete [] temp_buffer;