Fix warnings.
authorDavid Robillard <d@drobilla.net>
Wed, 14 Oct 2009 20:41:54 +0000 (20:41 +0000)
committerDavid Robillard <d@drobilla.net>
Wed, 14 Oct 2009 20:41:54 +0000 (20:41 +0000)
Hopefully that offset is an audio cycle offset, or someone's used the wrong type ;)

git-svn-id: svn://localhost/ardour2/branches/3.0@5777 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/port.h

index 5567b2170e4b5af3990e6805ad7ef903fda9e3e5..2597fa9601117c640968c16fc63436bd33d74bd3 100644 (file)
@@ -111,7 +111,7 @@ public:
        virtual void cycle_split () = 0;
        virtual Buffer& get_buffer (nframes_t nframes, nframes_t offset = 0) = 0;
        virtual void flush_buffers (nframes_t nframes, nframes64_t /*time*/, nframes_t offset = 0) {
-               (void) offset;
+               assert(offset < nframes);
        }
        virtual void transport_stopped () {}