torben's port buffer reworking; torben's panner automation loading patch (allows...
[ardour.git] / libs / ardour / export_channel_configuration.cc
index e6eb84be0651a31e12a44eff2fd70dd8040a0229..a092af88c1d57a78f49892a9c3920aea209ab92d 100644 (file)
@@ -46,7 +46,7 @@ ExportChannel::read_ports (float * data, nframes_t frames) const
 
        for (iterator it = begin(); it != end(); ++it) {
                if (*it != 0) {
-                       Sample* port_buffer = (*it)->get_audio_buffer().data();
+                       Sample* port_buffer = (*it)->get_audio_buffer( frames, 0).data();
                        
                        for (uint32_t i = 0; i < frames; ++i) {
                                data[i] += (float) port_buffer[i];