Changeset 2097:80d714c6d7d6 in roaraudio


Ignore:
Timestamp:
07/21/09 01:24:05 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to change signess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/convert.c

    r2096 r2097  
    783783 } 
    784784 
    785 //--// 
     785 if ( ROAR_CODEC_IS_SIGNED(from->codec) != ROAR_CODEC_IS_SIGNED(to->codec) ) { 
     786  if ( roar_conv_signedness(out, cin, samples, 
     787                            ROAR_CODEC_IS_SIGNED(from->codec), ROAR_CODEC_IS_SIGNED(to->codec), 
     788                            cinfo.bits) == -1 ) 
     789   return -1; 
     790 
     791  cin            = out; 
     792  cinfo.codec    = to->codec; 
     793 } 
    786794 
    787795 if ( cinfo.channels != to->channels ) { 
Note: See TracChangeset for help on using the changeset viewer.