+ try {
+ bool res = load(sample_name, &sample_data, &format, &size, &freq);
+ if (res == false) return NO_BUFFER;
+ } catch (sg_exception& e) {
+ SG_LOG(SG_GENERAL, SG_ALERT,
+ "failed to load sound buffer:" << e.getFormattedMessage());
+ return NO_BUFFER;
+ }
+