Towards MIDI:
[ardour.git] / libs / ardour / ardour / audio_port.h
index 1eab294028fa8fe75425ca57c6dd858e88ef42f7..45949dc59ec46ae06da1ef9435d5a76977ceb441 100644 (file)
@@ -78,7 +78,7 @@ class AudioPort : public Port {
        /** Assumes that the port is an audio output port */
        void silence (jack_nframes_t nframes, jack_nframes_t offset) {
                if (!_silent) {
-                       _buffer.clear(offset);
+                       _buffer.silence(nframes, offset);
                        if (offset == 0 && nframes == _buffer.capacity()) {
                                _silent = true;
                        }