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

[sc-dev] SF.net SVN: supercollider: [7369] trunk/build/SCClassLibrary/Common/Control /Bus.sc



Revision: 7369
          http://svn.sourceforge.net/supercollider/?rev=7369&view=rev
Author:   cruxxial
Date:     2008-02-23 07:31:59 -0800 (Sat, 23 Feb 2008)

Log Message:
-----------
changing error messages to new style Method:name 

Modified Paths:
--------------
    trunk/build/SCClassLibrary/Common/Control/Bus.sc

Modified: trunk/build/SCClassLibrary/Common/Control/Bus.sc
===================================================================
--- trunk/build/SCClassLibrary/Common/Control/Bus.sc	2008-02-23 15:05:41 UTC (rev 7368)
+++ trunk/build/SCClassLibrary/Common/Control/Bus.sc	2008-02-23 15:31:59 UTC (rev 7369)
@@ -9,7 +9,7 @@
 		server = server ? Server.default;
 		alloc = server.controlBusAllocator.alloc(numChannels);
 		if(alloc.isNil,{
-			error("Meta_Bus-control: failed to get a control bus allocated."
+			error("Meta_Bus:control: failed to get a control bus allocated."
 				+ "numChannels:" + numChannels + "server:" + server.name);
 			^nil
 		});
@@ -20,7 +20,7 @@
 		server = server ? Server.default;
 		alloc = server.audioBusAllocator.alloc(numChannels);
 		if(alloc.isNil,{
-			error("Meta_Bus-audio: failed to get an audio bus allocated."
+			error("Meta_Bus:audio: failed to get an audio bus allocated."
 			+ "numChannels:" + numChannels + "server:" + server.name);
 			^nil
 		});
@@ -132,6 +132,7 @@
 	}
 	
 	== { arg aBus;
+		if(aBus === this,{ ^true });
 		^aBus respondsTo: #[\index, \numChannels, \rate, \server]
 		and: { aBus.index == index 
 		and: { aBus.numChannels == numChannels


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.