You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
809 B
Markdown

s.reboot
//Quickie test of buffer allocation working
//Read a sound file
a = Buffer.read(s,"/Users/owen/Desktop/denoise_stn/sources/01-mix.wav");
//Pass buffer to this, along with a rank. It will allocate a new buffer,
//size it appropriately (in our server code) and return the new object
f = FDBufferExperiments.allocMatch(s,a,rank:5);
//Make sure everything is kosher:
a.query
f.query
//Try full async version
s.reboot
//Quickie test of buffer allocation working
//Read a sound file
a = Buffer.read(s,"/Users/owen/Desktop/denoise_stn/sources/01-mix.wav");
//Pass buffer to this, along with a rank. It will allocate a new buffer,
//size it appropriately (in our server code) and return the new object
f = FDBufferExperiments.allocMatchAsync(s,a,rank:5);
//Make sure everything is kosher:
a.query
f.query