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

Re: [sc-users] Best way to update numFrames of Buffer



On Sat, Mar 9, 2019 at 5:59 PM <kv.syntaxerror@xxxxxxxxx> wrote:
> What is the best way to manipulate the numFrames of a buffer in real time. Say I have a dictionary that I am updting its values dynamically, and sometimes rapidly.

You can't.

A buffer is a block of memory of a certain size. Once you allocate the
buffer's memory, you can't change the size. You can only .free the
buffer and re-allocate.

Whatever it is you're thinking of, better to find another way.

hjh

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/