[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:59, Scott Wilson wrote:

Didn't get an answer on this, so I'll try again. This should allow the changes I'd implemented to ServerOptions (sampleRate and hardwareBufferSize defaulting to nil) to not break the internal Server, but I'm not sure if I've done this the right way. Shall I commit it?

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.
_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev