Changeset 2743:0a9f381f7519 in roaraudio


Ignore:
Timestamp:
09/21/09 02:40:28 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected nummber of channels, corrected decrement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/convert.c

    r2742 r2743  
    385385 h  = (samples / 2) * 4; 
    386386 
    387  for (; i >= 0; i -= 2, h -= 3) { 
     387 for (; i >= 0; i -= 2, h -= 4) { 
    388388  op[h+0] = ip[i+0]; 
    389389  op[h+1] = ip[i+1]; 
     
    405405 h  = (samples / 2) * 5; 
    406406 
    407  for (; i >= 0; i -= 2, h -= 3) { 
     407 for (; i >= 0; i -= 2, h -= 5) { 
    408408  op[h+0] = ip[i+0]; 
    409409  op[h+1] = ip[i+1]; 
     
    423423 
    424424 i  = samples; 
    425  h  = (samples / 2) * 5; 
    426  
    427  for (; i >= 0; i -= 2, h -= 3) { 
     425 h  = (samples / 2) * 6; 
     426 
     427 for (; i >= 0; i -= 2, h -= 6) { 
    428428  op[h+0] = ip[i+0]; 
    429429  op[h+1] = ip[i+1]; 
Note: See TracChangeset for help on using the changeset viewer.