# HG changeset patch # User rfelker # Date 1075185943 0 # Node ID b8bee4f4b8bb57e31b7126969653cd36e4360b5b # Parent 456c9ab6c211ed2ad3caf60bcd3121ccdb680c20 if the user wants fast, use fast code! otherwise the user has to put af=resample=44100:0:0 in the config file, which will resample all files, not just ones that need it. libaf still sux! diff -r 456c9ab6c211 -r b8bee4f4b8bb libaf/af.c --- a/libaf/af.c Tue Jan 27 06:43:37 2004 +0000 +++ b/libaf/af.c Tue Jan 27 06:45:43 2004 +0000 @@ -383,6 +383,12 @@ if(!af || (AF_OK != af->control(af,AF_CONTROL_RESAMPLE_RATE, &(s->output.rate)))) return -1; + // Use lin int if the user wants fast + if ((AF_INIT_TYPE_MASK & s->cfg.force) == AF_INIT_FAST) { + char args[32]; + sprintf(args, "%d:0:0", s->output.rate); + af->control(af, AF_CONTROL_COMMAND_LINE, args); + } if(AF_OK != af_reinit(s,af)) return -1; }