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

Re: [sc-dev] change default cue buffer size patch




El nov 19, 2013 6:07 PM, "Julian Rohrhuber" <julian.rohrhuber@xxxxxxxxxxxxxxxxxx> escribió:
>
>
> On 19.11.2013, at 18:18, Lucas Samaruga <samarugalucas@xxxxxxxxx> wrote:
>
> >
> > > On 18.11.2013, at 22:28, Julian Rohrhuber <julian.rohrhuber@xxxxxxxxxxxxxxxxxx> wrote:
> > > >
> > > > So something like:
> > > >
> > > > (s.options.blockSize * 2) * 64.rand + 65536;
> > > >
> >
> >
> > It has to be a power of 2 for sure at least for small buffer sizes.
> in the helpfile it says it has to be a multiple of the block size. multiples of two wouldn't help as much as multiples of block size.
>

Appear to be booth, that is what I mean/understand. There is a trick, the data is in different help files.

> >
> > n = /*8*/9; m = s.options.blockSize * 2 * n;
> > b = Buffer.cueSoundFile(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav", numChannels: 1, bufferSize: m);
> > x = { DiskIn.ar(1, b, 1) }.play;
> > x.free; b.close; b.free;
> >
> > why it seems to work for greater buffer sizes? I can't read the code that much.
>
>
> _______________________________________________
> sc-dev mailing list
>
> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: https://listarc.bham.ac.uk/marchives/sc-dev/
> search: https://listarc.bham.ac.uk/lists/sc-dev/search/