Mercurial > mplayer.hg
diff mp3lib/layer3.c @ 24895:463e96055996
Make output samplerate independent of -speed
The samplerate requested from the audio out depended on the initial
value of playback speed on startup. Changing speed later at runtime
does not affect output samplerate; audio is always resampled instead.
Change the init code so that speed does not affect the samplerate
requested and behavior matches what you'd get by starting the file
with speed 1 and then changing it.
The previous behavior could be desirable when using a constant speed
value. However it means that if you start with a low speed and later
switch to normal speed then audio will be resampled to a low output
frequency. You can still use -srate to explicitly select the frequency.
author | uau |
---|---|
date | Thu, 01 Nov 2007 06:52:32 +0000 |
parents | a1a699833dcf |
children | 79d82aac91a3 |