Changeset 2103:81ac336e6c97 in roaraudio for libroardsp
- Timestamp:
- 07/21/09 14:29:33 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/convert.c
r2100 r2103 807 807 } 808 808 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 809 819 if ( cinfo.channels != to->channels ) { 810 820 ROAR_DBG("roar_conv2(*): channels: %i->%i", cinfo.channels, to->channels);
Note: See TracChangeset
for help on using the changeset viewer.