Changeset 2103:81ac336e6c97 in roaraudio


Ignore:
Timestamp:
07/21/09 14:29:33 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added simple not yet working resampler code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/convert.c

    r2100 r2103  
    807807 } 
    808808 
     809//--// 
     810 if ( from->rate != to->rate ) { 
     811  if ( roar_conv_rate(out, cin, samples, from->rate, to->rate, cinfo.bits, cinfo.channels) == -1 ) 
     812   return -1; 
     813 
     814  cin            = out; 
     815  samples        = (float)samples * (float)to->rate / (float)from->rate; 
     816  cinfo.rate     = to->rate; 
     817 } 
     818 
    809819 if ( cinfo.channels != to->channels ) { 
    810820  ROAR_DBG("roar_conv2(*): channels: %i->%i", cinfo.channels, to->channels); 
Note: See TracChangeset for help on using the changeset viewer.