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

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


On Oct 31, 2004, at 7:09 AM, Scott Wilson wrote:

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;

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;

Any objections?

sc-dev mailing list