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

[sc-dev] [approve] ServerOptions-sampleRate default



Given the problem I had with this (see my post on the users list) perhaps it would be worth it to set the default for this to nil. I don't think this would be likely to break any code, and would prevent some potential bugs as nil would not work in any math. This would be functionally equivalent to the way things are now and only need a small change to asOptionsString. i.e.

<x-tad-smaller> if (sampleRate != 0, {
o = o ++ </x-tad-smaller><x-tad-smaller>" -S "</x-tad-smaller><x-tad-smaller> ++ sampleRate;
});
</x-tad-smaller>

would just be:

<x-tad-smaller> if (sampleRate.notNil, {
o = o ++ </x-tad-smaller><x-tad-smaller>" -S "</x-tad-smaller><x-tad-smaller> ++ sampleRate;
});</x-tad-smaller>


Any objections?

S.