Changeset 2797:d6185d393e50 in roaraudio


Ignore:
Timestamp:
09/26/09 13:41:04 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

first version seems to work best

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/convert.c

    r2796 r2797  
    691691 int i; 
    692692 
    693  for(i = 0; i < samples; i++) { 
    694   op[i] = ip[i]; 
    695  
    696   if ( ip[i] & 0x8000 ) { 
    697    op[i] = ip[i] ^ 0xFFFF; 
    698   } else { 
    699    op[i] = ip[i] ^ 0x8000; 
    700   } 
    701  } 
     693 for(i = 0; i < samples; i++) 
     694  op[i] = ip[i] + 32768; 
    702695 
    703696 return 0; 
Note: See TracChangeset for help on using the changeset viewer.