diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-01-27 06:45:43 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-01-27 06:45:43 +0000 |
commit | f69f48b200dd058feeebab0a69eeee741d1a55ff (patch) | |
tree | 8fa172cdc0fa06f6a803f20fd26cca6bef138d42 /libaf | |
parent | 09cd5704b7a8e2c18fea7ac213520a68284c4fda (diff) | |
download | mpv-f69f48b200dd058feeebab0a69eeee741d1a55ff.tar.bz2 mpv-f69f48b200dd058feeebab0a69eeee741d1a55ff.tar.xz |
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
Diffstat (limited to 'libaf')
-rw-r--r-- | libaf/af.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libaf/af.c b/libaf/af.c index 3b8293c141..1a8513b6b4 100644 --- a/libaf/af.c +++ b/libaf/af.c @@ -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; } |