buffering

This commit is contained in:
nik gaffney 2018-05-14 12:22:29 +02:00
parent f91f193fab
commit d5d9283456
1 changed files with 2 additions and 2 deletions

View File

@ -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;