2 var <index, <numChannels, <server;
4 *alloc { arg server, numChannels=1;
6 server = server ? Server.default;
7 alloc = server.scopeBufferAllocator.alloc(numChannels);
9 error("Meta_ScopeBuffer:alloc: failed to get a scope buffer allocated."
10 + "numChannels:" + numChannels + "server:" + server.name);
13 ^this.new(alloc, numChannels, server)
16 *new { arg index=0, numChannels=1, server;
17 ^super.newCopyArgs(index, numChannels, server ? Server.default)
20 // compatibility method
27 (this.asString + " has already been freed").warn;
31 server.scopeBufferAllocator.free(index);
37 stream << this.class.name << "(" <<*
38 [index, numChannels, server] <<")"
42 stream << this.class.name << "(" <<*
43 [index, numChannels, server.asCompileString] <<")"
46 hash { ^index.hash bitXor: numChannels.hash bitXor: server.hash }