diff options
author | wm4 <wm4@nowhere> | 2015-02-10 22:34:07 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-10 22:34:07 +0100 |
commit | 81d8c5d519828b1d5de9a30d23ceeb6c4c9a1d15 (patch) | |
tree | 2464a5259a9db73ef66e91449285daa182f2a029 /player | |
parent | 2a3d19a9dffc2613d491fc4dcd49e1e239e663c9 (diff) | |
download | mpv-81d8c5d519828b1d5de9a30d23ceeb6c4c9a1d15.tar.bz2 mpv-81d8c5d519828b1d5de9a30d23ceeb6c4c9a1d15.tar.xz |
af_scaletempo: allow changing speed at runtime without reinit
Staring at the code a bit, it turns out that changing speed without
losing state is quite easy. The initialization code is big and
complicated, but most of it is specific only to the configured audio
format, not the speed.
Refactor the code so that changing speed at runtime could work. (It's
not actually used yet - the player code still does a complete reinit.
This will be fixed in the next commit.)
The "if (s->speed_tempo == s->speed_pitch)" looks a bit strange, but
does the same thing as the code did before: speed can be changed only if
exactly one flag is set. If both are set or none, speed can't be
changed.
Diffstat (limited to 'player')
0 files changed, 0 insertions, 0 deletions