Commit d5d92834 authored by nik gaffney's avatar nik gaffney

buffering

parent f91f193f
......@@ -53,7 +53,7 @@ if ( ~now.year == 1970,
~file.postln;
// cue file form disk then play
Buffer.cueSoundFile (server: s, path: ~prefix++~file, action: ~play1);
Buffer.cueSoundFile (s, ~prefix++~file); ~play1.value;
};
~foreground = {
......@@ -86,7 +86,7 @@ if ( ~now.year == 1970,
Routine {
"~play [bg - ".post; b1.path.post; "]".postln;
{(Diskin.ar(1, b1, loop: 0) * 0.1).dup }.play.waitForFree;
{(DiskIn.ar(1, b1, loop: 0) * 0.1).dup }.play.waitForFree;
// free buffer once done?
"freed [bg - ".post; b1.path.post; "]".postln;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment