aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample/source/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/xsample/source/main.cpp')
-rw-r--r--externals/grill/xsample/source/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/externals/grill/xsample/source/main.cpp b/externals/grill/xsample/source/main.cpp
index 1f79335f..6e17b0a0 100644
--- a/externals/grill/xsample/source/main.cpp
+++ b/externals/grill/xsample/source/main.cpp
@@ -93,7 +93,10 @@ BL xsample::bufchk()
I xsample::m_set(I argc,const t_atom *argv)
{
- return buf->Set(argc >= 1?GetASymbol(argv[0]):NULL);
+ const t_symbol *sym = argc >= 1?GetASymbol(argv[0]):NULL;
+ int r = buf->Set(sym);
+ if(sym && r < 0) post("%s - can't find buffer %s",thisName(),GetString(sym));
+ return r;
}
BL xsample::m_refresh()