void work (const URIs& uris, const lvtk::Atom& atom) override { SampleCache& cache (*getSampleCache()); if (LayerData* data = cache.getLayerData (uris, atom.as_object(), false)) { const ObjectRef ref (jobs->getWorkForge(), uris.ksp1_Layer, data); if (ref.get<LayerData>() != nullptr) { respond (ref.total_size(), ref.cobj()); } } }
void work (const URIs& uris, const lvtk::Atom& atom) override { const lvtk::AtomObject object (atom.as_object()); const lvtk::Atom note; lv2_atom_object_get (object, uris.slugs_note, ¬e, 0); if (note) { SamplerSound* s = new SamplerSound (note.as_int(), static_cast<int> (object.id())); const ObjectRef ref (jobs->getWorkForge(), uris.ksp1_Key, s); if (ref.get<SamplerSound>() != nullptr) { respond (ref.total_size(), ref.cobj()); } } }