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

[sc-dev] Buffer:free



Hi
i'm doing some NRT rendering with Buffers. And i'm using Buffer's methods to generate osc messages. In my case it's not very convenient how Buffer:free works.
It uncaches in the freeMsg, which means when i use this method when generating osc messages and Scores, my Buffer number is always 0. 
Could we move this.uncache to free? 

Like:

free { arg completionMessage;
this.uncache;
server.listSendMsg( this.freeMsg(completionMessage) );
}
freeMsg { arg completionMessage;
server.bufferAllocator.free(bufnum);
^["/b_free", bufnum, completionMessage.value(this)];
}

Jan