strummachine / sm-audiokit

0 stars 0 forks source link

Dev/background sample loading #11

Closed maksutovic closed 2 years ago

maksutovic commented 2 years ago

Ok there are some major changes in this:

The biggest one is the use of Result and completion blocks in order to do asynchronous background tasks. I rewrote more or less all the SampleStorage methods -- and I'm sorry I wish I did this sooner as you will probably feel right at home with this style.

I have tested most of the methods except for loadSamplesFromDisk I am happy to test tomorrow it just got really late here.

All methods in SampleStorage now happen on the .utility background thread service which I think is the appropriate QOS for these methods, though we can try others as needed.

banjerluke commented 2 years ago

More work to do on the plugin and WebCode integration, but this is clearly the way forward. Thanks!