--- a/demos/demo_blockproc_basicloop.m
+++ b/demos/demo_blockproc_basicloop.m
@@ -18,7 +18,7 @@
 
 bufLen = 1024;
 % Setup blocktream
-if isoctave
+if ~isoctave
    block(source,varargin{:},'L',bufLen);
 else
    block(source,varargin{:},'loadind',p,'L',bufLen);
@@ -34,4 +34,4 @@
    blockplay(f*gain);
 end
 blockdone();
-p.close();+p.close();