Mercurial > mplayer.hg
comparison libaf/af.c @ 11859:b8bee4f4b8bb
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!
author | rfelker |
---|---|
date | Tue, 27 Jan 2004 06:45:43 +0000 |
parents | dcca52fe32bd |
children | ce6ab8cb8597 |
comparison
equal
deleted
inserted
replaced
11858:456c9ab6c211 | 11859:b8bee4f4b8bb |
---|---|
381 } | 381 } |
382 // Init the new filter | 382 // Init the new filter |
383 if(!af || (AF_OK != af->control(af,AF_CONTROL_RESAMPLE_RATE, | 383 if(!af || (AF_OK != af->control(af,AF_CONTROL_RESAMPLE_RATE, |
384 &(s->output.rate)))) | 384 &(s->output.rate)))) |
385 return -1; | 385 return -1; |
386 // Use lin int if the user wants fast | |
387 if ((AF_INIT_TYPE_MASK & s->cfg.force) == AF_INIT_FAST) { | |
388 char args[32]; | |
389 sprintf(args, "%d:0:0", s->output.rate); | |
390 af->control(af, AF_CONTROL_COMMAND_LINE, args); | |
391 } | |
386 if(AF_OK != af_reinit(s,af)) | 392 if(AF_OK != af_reinit(s,af)) |
387 return -1; | 393 return -1; |
388 } | 394 } |
389 | 395 |
390 // Check number of output channels fix if not OK | 396 // Check number of output channels fix if not OK |