+ Source *src = new CoreAudioSource (s, node);
+#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
+ // boost_debug_shared_ptr_mark_interesting (src, "Source");
+#endif
+ boost::shared_ptr<Source> ret (src);
+
+ if (setup_peakfile (ret, defer_peaks)) {
+ return boost::shared_ptr<Source>();
+ }
+
+ ret->check_for_analysis_data_on_disk ();
+ SourceCreated (ret);
+ return ret;
+#else
+ throw; // rethrow
+#endif
+ }
+ }
+ } else if (type == DataType::MIDI) {
+ boost::shared_ptr<SMFSource> src (new SMFSource (s, node));
+ src->load_model (true, true);
+#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
+ // boost_debug_shared_ptr_mark_interesting (src, "Source");
+#endif
+ src->check_for_analysis_data_on_disk ();
+ SourceCreated (src);
+ return src;