[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] [approve] ServerOptions-sampleRate default
On 6 Nov 2004, at 11:27, Scott Wilson wrote:
On 6 Nov 2004, at 11:07, Stephan Wittwer wrote:
Am 05.11.2004 um 00:35 schrieb Scott Wilson:
Done. I also changed hardwareBufferSize in the same way for consistency. Again this should not break anything.
They break the internal server!
Assigning default value of zero to hardwareBufferSize and sampleRate in Server.sc makes it work again.
Don't ask me why, no time to investigate. Best regards, Stephan.
Oops. Sorry don't know why I didn't test that. I've put it back for the moment.
S.
Okay, clearly I'm messing about in things I don't fully understand here, but the changes below (in prBootInProcessServer in OSCData.cpp) seem to fix it, and do allow me to set the sampleRate and buffer size. Is this the correct way to do this?
if (NotNil(optionsSlots + 9)) {
err = slotIntVal(optionsSlots + 9, (int*)&options.mPreferredHardwareBufferFrameSize);
if (err) return err;
}
...
if (NotNil(optionsSlots + 13)) {
err = slotIntVal(optionsSlots + 13, (int*)&options.mPreferredSampleRate);
if (err) return err;
}
Apologies for any boneheadness...
S.