[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] PlayBuf bug



Seems nothing been done about this... I'm using a build from 12/21 and it still breaks.

What has not been mentioned before is that it crashes only when loop is set to 0, and it crashes at the end of the buffer. If you loop the file, it works fine.

s.boot;

// load a _stereo_ file
b = "sounds/a11wlk01-44.1-stereo.aiff".standardizePath);

// this is OK
"help-PlayBuf",{ arg out=0,bufnum=0;
Out.ar(out,
PlayBuf.ar(2,bufnum, BufRateScale.kr(bufnum), loop:1)
)
}).play(s,[\out, 0, \bufnum, b.bufnum]);

// this dies at end of file
"help-PlayBuf",{ arg out=0,bufnum=0;
Out.ar(out,
PlayBuf.ar(2,bufnum, BufRateScale.kr(bufnum))
)
}).play(s,[\out, 0, \bufnum, b.bufnum]);


s.boot;

b = "sounds/a11wlk01-44.1.aiff".standardizePath);

// this is OK, even not looping
"help-PlayBuf",{ arg out=0,bufnum=0;
Out.ar(out,
PlayBuf.ar(1,bufnum, BufRateScale.kr(bufnum))
)
}).play(s,[\out, 0, \bufnum, b.bufnum]);

hjh
____________________________________

H. James Harkins /// dewdrop_world
http://www.dewdrop-world.net

"If attacked by a lion, thrust your arm down his throat.
This takes some practice." -- Cyril Connolly