SAMP Update + Buffer Allocation Fix
- Updating to the latest version of SAMP (Bank) - Reserving an absurdly high number of buffers for samples
This commit is contained in:
1042
Classes/Bank.sc
1042
Classes/Bank.sc
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@ Boot {
|
|||||||
{
|
{
|
||||||
"-> Booting using default server configuration".postln;
|
"-> Booting using default server configuration".postln;
|
||||||
s = Server.default;
|
s = Server.default;
|
||||||
s.options.numBuffers = 2048 * 512;
|
s.options.numBuffers = (2048 * 2048) * 2; // Some arbitrary number
|
||||||
s.options.memSize = 8192 * 64;
|
s.options.memSize = 8192 * 64;
|
||||||
s.options.numWireBufs = 2048;
|
s.options.numWireBufs = 2048;
|
||||||
s.options.maxNodes = 1024 * 32;
|
s.options.maxNodes = 1024 * 32;
|
||||||
@ -25,6 +25,8 @@ Boot {
|
|||||||
{
|
{
|
||||||
"-> Booting using user server configuration".postln;
|
"-> Booting using user server configuration".postln;
|
||||||
s = Server.default;
|
s = Server.default;
|
||||||
|
// Imposing a very high number of buffers!
|
||||||
|
serverOptions.numBuffers = (2048 * 512) * 2;
|
||||||
s.options = serverOptions;
|
s.options = serverOptions;
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
@ -72,7 +74,7 @@ Boot {
|
|||||||
~sp = ~sp ?? 'default';
|
~sp = ~sp ?? 'default';
|
||||||
~nb = ~nb ?? 0;
|
~nb = ~nb ?? 0;
|
||||||
~buf = Bank(~sp)[~nb % Bank(~sp).paths.size];
|
~buf = Bank(~sp)[~nb % Bank(~sp).paths.size];
|
||||||
if (~buf.numChannels == 1) {
|
if (Bank(~sp).metadata[~nb % Bank(~sp).size][\numChannels] == 1) {
|
||||||
~instrument = \player;
|
~instrument = \player;
|
||||||
} {
|
} {
|
||||||
~instrument = \splayer;
|
~instrument = \splayer;
|
||||||
|
|||||||
Reference in New Issue
Block a user