diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-10-11 10:09:47 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-10-11 10:09:47 +0000 |
commit | 887f305d37cef754d3a50104b9e312ce01e2815c (patch) | |
tree | baac81bbcb00448cb6ff052c70ad1982fcc5db87 /externals | |
parent | bef75645dd01c9d9e1d375e0e3426eac809875f7 (diff) |
fixes for Metrowerks
fix compilation for CFM
small fixes
correction of limits on buffer resize
svn path=/trunk/; revision=3692
Diffstat (limited to 'externals')
-rw-r--r-- | externals/grill/xsample/source/main.cpp | 7 | ||||
-rw-r--r-- | externals/grill/xsample/source/main.h | 2 | ||||
-rwxr-xr-x | externals/grill/xsample/xsample.mcp | bin | 457399 -> 457399 bytes |
3 files changed, 8 insertions, 1 deletions
diff --git a/externals/grill/xsample/source/main.cpp b/externals/grill/xsample/source/main.cpp index a948c056..df0c1456 100644 --- a/externals/grill/xsample/source/main.cpp +++ b/externals/grill/xsample/source/main.cpp @@ -167,8 +167,13 @@ void xsample::DoUpdate(unsigned int flags) buf.Set(); if(flags&xsc_range && buf.Ok()) { + const int f = buf.Frames(); + if(curmin < 0) curmin = 0; - if(curmax > buf.Frames()) curmax = buf.Frames(); + else if(curmin > f) curmin = f; + + if(curmax > f) curmax = f; + else if(curmax < curmin) curmax = curmin; } if(flags&xsc_units) { diff --git a/externals/grill/xsample/source/main.h b/externals/grill/xsample/source/main.h index e7ac6280..c3a1a66e 100644 --- a/externals/grill/xsample/source/main.h +++ b/externals/grill/xsample/source/main.h @@ -69,7 +69,9 @@ extern "C++" { #endif // this is for the UInt32 prototype (thanks to Jamie) // \TODO we'd rather not use Carbon but some other framework + #ifdef __MACH__ #include <Carbon/Carbon.h> + #endif // Initialize a prefetch constant for use with vec_dst(), vec_dstt(), vec_dstst or vec_dststt // Taken from the "AltiVec tutorial" by Ian Ollmann, Ph.D. diff --git a/externals/grill/xsample/xsample.mcp b/externals/grill/xsample/xsample.mcp Binary files differindex 2903bb7d..ae5530a9 100755 --- a/externals/grill/xsample/xsample.mcp +++ b/externals/grill/xsample/xsample.mcp |