diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2009-04-01 21:13:09 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2009-04-01 21:13:09 +0000 |
commit | 0ed7a8b68dd73e2b0473b8127aeca99f3bac9061 (patch) | |
tree | 5c67818b38a5cc2f9caa5ca7f8640ca356adf02b /externals/grill/vasp/source/vbuffer.cpp | |
parent | bb4c7f6a245394d09dac9adfb2efb093d3d98452 (diff) |
cleaned up grill externals - replaced with svn:externals to svn.grrrr.org/ext/trunk/
svn path=/trunk/; revision=10951
Diffstat (limited to 'externals/grill/vasp/source/vbuffer.cpp')
-rw-r--r-- | externals/grill/vasp/source/vbuffer.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/externals/grill/vasp/source/vbuffer.cpp b/externals/grill/vasp/source/vbuffer.cpp deleted file mode 100644 index 0308358f..00000000 --- a/externals/grill/vasp/source/vbuffer.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/* - -VASP modular - vector assembling signal processor / objects for Max/MSP and PD - -Copyright (c) 2002 Thomas Grill (xovo@gmx.net) -For information on usage and redistribution, and for a DISCLAIMER OF ALL -WARRANTIES, see the file, "license.txt," in this distribution. - -*/ - -#include "main.h" -#include "vbuffer.h" -#include "buflib.h" - -V VSymbol::Inc() { if(sym) BufLib::IncRef(sym); } -V VSymbol::Dec() { if(sym) BufLib::DecRef(sym); } - -/////////////////////////////////////////////////////////////////////////// -// SysBuf class -/////////////////////////////////////////////////////////////////////////// - -SysBuf &SysBuf::Set(const VSymbol &s,I c,I l,I o) -{ - buf.Set(s.Symbol()); - - chn = c; - if(chn > Channels()) { - I chn1 = Channels()-1; - post("vasp - buffer %s: Channel index (%i) is out of range, set to highest (%i)",s.Name(),chn,chn1); - chn = chn1; // simply correct the channel?? - } - offs = o; - if(offs < 0) { - post("vasp - buffer %s: Offset (%i) is out of range, set to 0",s.Name(),offs); - offs = 0; - } - if(offs > Frames()) { -// post("vasp - buffer %s: Offset (%i) is out of range, set to %i",s.Name(),offs,Frames()); - offs = Frames(); - } - len = l >= 0?l:Frames(); - if(offs+len > Frames()) { - I len1 = Frames()-offs; - if(l >= 0) post("vasp - buffer %s: Length (%i) is out of range, corrected to %i",s.Name(),len,len1); - len = len1; - } - - return *this; -} - - |