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

[sc-dev] SF.net SVN: supercollider: [7367] trunk/build/SCClassLibrary/ backwards_compatibility/extMethods.sc



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

Log Message:
-----------
SC2 bwd compat folder: Synth.sampleRate, commenting out Synth-isPlaying until/unless it is fixed.

these should all go to an SC2-compat quark

Modified Paths:
--------------
    trunk/build/SCClassLibrary/backwards_compatibility/extMethods.sc

Modified: trunk/build/SCClassLibrary/backwards_compatibility/extMethods.sc
===================================================================
--- trunk/build/SCClassLibrary/backwards_compatibility/extMethods.sc	2008-02-23 14:56:24 UTC (rev 7366)
+++ trunk/build/SCClassLibrary/backwards_compatibility/extMethods.sc	2008-02-23 15:01:40 UTC (rev 7367)
@@ -27,20 +27,24 @@
 	*stop {
 		RootNode.new.freeAll;
 	}
-	*isPlaying {
+	//*isPlaying {
 		//server is running
 		// at least one thing playing
-		RootNode.new.head.deepDo({ arg child;
-			if(child.isPlaying,{ ^true })
-		});
-		^false
-	}
+	// deepDo is gone
+		//RootNode.new.head.deepDo({ arg child;
+		//	if(child.isPlaying,{ ^true })
+		//});
+		//^false
+	//}
 	*play { arg func;
 		^func.play;
 	}
 	play {
 		//if not already playing, play
 	}
+	*sampleRate {
+		^Server.default.sampleRate ? Server.default.options.sampleRate ? 44100.0
+	}
 }
 
 


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