forked from supercollider/supercollider
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request supercollider#4644 from supercollider/3.10
3.10 -> develop
- Loading branch information
Showing
8 changed files
with
155 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
|
||
TestOSCBundle : UnitTest { | ||
|
||
test_prepare { | ||
var sd, b,completed=false; | ||
|
||
b = OSCBundle.new; | ||
|
||
sd = Array.fill(100,{ |i| | ||
var d; | ||
d = SynthDef( "TestOSCBundle" ++ i,{ | ||
SinOsc.ar(400 + i,mul: 0.0001) | ||
}); | ||
|
||
b.addPrepare( ["/d_recv", d.asBytes] ) | ||
|
||
}); | ||
|
||
this.bootServer; | ||
|
||
b.doPrepare(Server.default,{ completed = true}); | ||
|
||
this.wait( {completed},"waiting for prepare to send all"); | ||
|
||
|
||
var server; | ||
|
||
setUp { | ||
server = Server(this.class.name); | ||
server.bootSync; | ||
} | ||
|
||
} | ||
tearDown { | ||
server.quit; | ||
server.remove; | ||
} | ||
|
||
test_doPrepare { | ||
var synthDef, bundle; | ||
var completed = false; | ||
|
||
bundle = OSCBundle.new; | ||
synthDef = Array.fill(100, { |i| | ||
var def = SynthDef("TestOSCBundle" ++ i, { Silent.ar }); | ||
bundle.addPrepare(["/d_recv", def.asBytes]) | ||
}); | ||
bundle.doPrepare(server, { completed = true }); | ||
this.wait({ completed }, "% timed out waiting for bundle to be sent".format(thisMethod)); | ||
|
||
this.assertEquals(completed, true, "'doPrepare' sent the prepare bundle to the server"); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters