[zaptel-commits] bmd: branch mattf/zaptel-1.4-ztmonitorstereo r4180 - /team/mattf/zaptel-1.4-z...

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Fri Apr 18 18:25:18 CDT 2008


Author: bmd
Date: Fri Apr 18 18:25:18 2008
New Revision: 4180

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4180
Log:
fixing mattf's merge of my stereo monitor patch

Modified:
    team/mattf/zaptel-1.4-ztmonitorstereo/ztmonitor.c

Modified: team/mattf/zaptel-1.4-ztmonitorstereo/ztmonitor.c
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.4-ztmonitorstereo/ztmonitor.c?view=diff&rev=4180&r1=4179&r2=4180
==============================================================================
--- team/mattf/zaptel-1.4-ztmonitorstereo/ztmonitor.c (original)
+++ team/mattf/zaptel-1.4-ztmonitorstereo/ztmonitor.c Fri Apr 18 18:25:18 2008
@@ -535,6 +535,14 @@
 				if (ofh[MON_PRE_TX])
 					fwrite(buf_tx, 1, res_tx, ofh[MON_PRE_TX]);
 
+				if (stereo_output && ofh[MON_PRE_STEREO]) {
+					for (x=0;x<res_brx;x++) {
+						stereobuf[x*2] = buf_brx[x];
+						stereobuf[x*2+1] = buf_tx[x];
+					}
+					fwrite(stereobuf, 1, res_brx*2, ofh[MON_PRE_STEREO]);
+				}
+
 				/* XXX How are we going to visualize the preecho set of streams?
 				if (visual) {
 					if (res == res2)
@@ -542,14 +550,6 @@
 					else
 						printf("Huh?  res = %d, res2 = %d?\n", res, res2);
 				} */
-			}
-
-			if (stereo_output && ofh[MON_PRE_STEREO]) {
-				for (x=0;x<res_brx;x++) {
-					stereobuf[x*2] = buf_brx[x];
-					stereobuf[x*2+1] = buf_tx[x];
-				}
-				fwrite(stereobuf, 1, res_brx*2, ofh[MON_PRE_STEREO]);
 			}
 		}
 




More information about the zaptel-commits mailing list