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

[sc-dev] OSCBundle breaks if server is nil

p = Patch(someInstr);

... fails because it doesn't have a server assigned, hence OSCBundle can't send. Should OSCBundle not substitute Server.default? Either that or detect a nil server and not send. E.g.,

<x-tad-smaller> schedSend { </x-tad-smaller><x-tad-smaller>arg</x-tad-smaller><x-tad-smaller> server, clock, quant;
server = server ?? { </x-tad-smaller><x-tad-smaller>Server</x-tad-smaller><x-tad-smaller>.default };
</x-tad-smaller><x-tad-smaller>this</x-tad-smaller><x-tad-smaller>.doPrepare(server, {

Also in send, sendAtTime, doPrepare, prSend and MixedBundle-prSend.

Just for general robustness.


<x-tad-smaller>ERROR: Message 'latency' not understood.
DoesNotUnderstandError-reportError 058F8950
arg this = <instance of DoesNotUnderstandError>
Nil-handleError 058F8890
arg this = nil
arg error = <instance of DoesNotUnderstandError>
Object-throw 058F8830
arg this = <instance of DoesNotUnderstandError>
Object-doesNotUnderstand 058F87D0
arg this = nil
arg selector = 'latency'
arg args = [*0]
MixedBundle-prSend 058F8770
arg this = <instance of MixedBundle>
arg server = nil
arg latency = nil
OSCBundle-send 058F86B0
arg this = <instance of MixedBundle>
arg server = nil
arg time = nil
Nil-schedCXBundle 05019760
arg this = nil
arg bundle = <instance of MixedBundle>
arg server = nil
arg timeOfRequest = 4731.803064297001
OSCBundle-sendAtTime 050188F0
arg this = <instance of MixedBundle>
arg server = nil
arg atTime = nil
arg timeOfRequest = nil
AbstractPlayer-free 058F85F0
arg this = <instance of Patch>
arg atTime = nil
var bundle = <instance of MixedBundle>
Interpreter-interpretPrintCmdLine 058F8590
arg this = <instance of Interpreter>
var res = nil
var func = <instance of Function>
Process-interpretPrintCmdLine 058F8530
arg this = <instance of Main>


: H. James Harkins
: jamshark70@xxxxxxxxxxxxxxxxx
: http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman