r2606 - trunk/libminisip/source/soundcard

cesc at minisip.org cesc at minisip.org
Fri Jun 2 15:15:47 CEST 2006


Author: cesc
Date: 2006-06-02 15:15:46 +0200 (Fri, 02 Jun 2006)
New Revision: 2606

Modified:
   trunk/libminisip/source/soundcard/AlsaSoundDevice.cxx
Log:
Fix AlsaSoundDevice::calculateParameters ... 

the range of values are inclusive the limits ... it is not like a normal indexing operation :)




Modified: trunk/libminisip/source/soundcard/AlsaSoundDevice.cxx
===================================================================
--- trunk/libminisip/source/soundcard/AlsaSoundDevice.cxx	2006-06-02 10:50:36 UTC (rev 2605)
+++ trunk/libminisip/source/soundcard/AlsaSoundDevice.cxx	2006-06-02 13:15:46 UTC (rev 2606)
@@ -129,8 +129,8 @@
 	unsigned long tmp;
 	uint32_t per;
 	unsigned long siz; 
-	for(  per = periodsMin; per<periodsMax; per++ ) {
-		for(  siz = periodSizeMin; siz < periodSizeMax; siz+=4 ) {
+	for(  per = periodsMin; per <= periodsMax; per++ ) {
+		for(  siz = periodSizeMin; siz <= periodSizeMax; siz+=4 ) {
 			tmp = per * siz;
 			if( tmp >= buffer ) {
 				if(  tmp > bufferMax ) { tmp = bufferMax; }



More information about the Minisip-devel mailing list