buffering
This commit is contained in:
parent
f91f193fab
commit
d5d9283456
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ if ( ~now.year == 1970,
|
||||||
~file.postln;
|
~file.postln;
|
||||||
|
|
||||||
// cue file form disk then play
|
// cue file form disk then play
|
||||||
Buffer.cueSoundFile (server: s, path: ~prefix++~file, action: ~play1);
|
Buffer.cueSoundFile (s, ~prefix++~file); ~play1.value;
|
||||||
};
|
};
|
||||||
|
|
||||||
~foreground = {
|
~foreground = {
|
||||||
|
@ -86,7 +86,7 @@ if ( ~now.year == 1970,
|
||||||
Routine {
|
Routine {
|
||||||
"~play [bg - ".post; b1.path.post; "]".postln;
|
"~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?
|
// free buffer once done?
|
||||||
|
|
||||||
"freed [bg - ".post; b1.path.post; "]".postln;
|
"freed [bg - ".post; b1.path.post; "]".postln;
|
||||||
|
|
Loading…
Reference in a new issue