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

Re: [Sc-devel] DiskIn bugfix and loop enhancement



OK... since no one said anything, I committed these changes (since, after my tests in RT and NRT, all seemed fine).

Best,

Josh

On Dec 31, 2007, at 1:07 PM, Martin Rumori wrote:

hi scs,

below are two patches for DiskIn, one bugfix and one proposal,
both against sc-3.1:

1) diskin_zerobuffercorrectly.patch

at the end of a file played from disk, a small part of the soundfile
was played twice, since the buffer was not zeroed correctly (number in
samples instead of in bytes)


2) diskin_loop.patch

adds seamless looping of a file to DiskIn using a third argument
"loop".  if it is set to 1, the soundfile is looped eternally after
its end.

non-realtime code is not yet tested, just copied and adopted from the
realtime version.

all the best, and a happy new year,

martin

< diskin_zerobuffercorrectly .patch ><diskin_loop.patch>_______________________________________________
Sc-devel mailing list
Sc-devel@xxxxxxxxxxxxxxxxxx
http://sonic.mat.ucsb.edu/mailman/listinfo/sc-devel

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono
*/