1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 11:02:10 +00:00

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!


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11860 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rfelker 2004-01-27 06:45:43 +00:00
parent 09cd5704b7
commit f69f48b200

View File

@ -383,6 +383,12 @@ int af_init(af_stream_t* s, int force_output)
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;
}