Changeset 2423:da9a0d1c16dc in roaraudio
- Timestamp:
- 08/19/09 03:08:26 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/remove.c
r2396 r2423 239 239 } 240 240 } else { 241 peak = 4294967295UL;242 for (i = 0; i < samples; i++) { 243 s = -subout[i]; 244 s += in[i]; 245 s = s < 0 ? -s : s; // we true 32 bit, not int operation here 246 if ( s > peak ) 247 peak = s; 248 } 249 250 for (i = 0; i < samples; i++) { 251 s = -subout[i]; 252 s *= 4294967295UL;241 peak = 2147483647UL; 242 for (i = 0; i < samples; i++) { 243 s = -subout[i]; 244 s += in[i]; 245 s = s < 0 ? -s : s; // we true 32 bit, not int operation here 246 if ( s > peak ) 247 peak = s; 248 } 249 250 for (i = 0; i < samples; i++) { 251 s = -subout[i]; 252 s *= 2147483647UL; 253 253 s /= peak; 254 254 s += in[i];
Note: See TracChangeset
for help on using the changeset viewer.