changeset 2740:48cb30c1d0ea

blah more refactoring
author William Pitcock <nenolod@atheme.org>
date Mon, 30 Jun 2008 21:13:26 -0500
parents b7beb9fea309
children f16fdcabe069
files src/psf2/README src/psf2/oss.c
diffstat 2 files changed, 21 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/psf2/README	Mon Jun 30 21:13:26 2008 -0500
@@ -0,0 +1,19 @@
+psf2 plugin
+-----------
+
+What is this?
+
+It's a PSF2 plugin based on:
+
+ * UPSE
+ * Audio Overload
+ * Highly Experimental
+
+It's under the BSD license, mostly, but it uses code from PeOPS, so it's
+probably GPL.
+
+Does it work?
+
+Not as a plugin yet. But that's coming.
+
+
--- a/src/psf2/oss.c	Mon Jun 30 20:47:25 2008 -0500
+++ b/src/psf2/oss.c	Mon Jun 30 21:13:26 2008 -0500
@@ -67,25 +67,6 @@
 
 
 // set # of samples per update
-
-void m1sdr_SetSamplesPerTick(UINT32 spf)
-{
-	nDSoundSegLen = spf;
-}
-
-// m1sdr_Update - timer callback routine: runs sequencer and mixes sound
-
-void m1sdr_Update(void)
-{	
-	if (!hw_present) return;
-
-	if (m1sdr_Callback)
-	{
-		m1sdr_Callback(samples, nDSoundSegLen);
-	}
-}
-// checks the play position to see if we should trigger another update
-
 void m1sdr_TimeCheck(void)
 {
 #if VALGRIND
@@ -99,7 +80,7 @@
 	{
 		int err;
 
-		m1sdr_Update();
+		psf2_gen(samples, nDSoundSegLen);
 		playtime++;
 
 		// output the generated samples
@@ -117,7 +98,7 @@
 	{
 	    	while (info.bytes >= (nDSoundSegLen * 4))
 		{
-			m1sdr_Update();
+			psf2_gen(samples, nDSoundSegLen);
 			playtime++;
 
 			// output the generated samples