Changeset 2797:d6185d393e50 in roaraudio
- Timestamp:
- 09/26/09 13:41:04 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/convert.c
r2796 r2797 691 691 int i; 692 692 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; 702 695 703 696 return 0;
Note: See TracChangeset
for help on using the changeset viewer.