Esempio n. 1
0
 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());
         }
     }
 }
Esempio n. 2
0
            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, &note, 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());
                    }
                }
            }