Do resampling in AudioDecoder rather than Player.
authorCarl Hetherington <cth@carlh.net>
Sun, 21 May 2017 18:48:14 +0000 (19:48 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 21 May 2017 18:48:14 +0000 (19:48 +0100)
commitfa4d2529d63bcfa7cf7c516b7227e20a1b6dec7e
tree1ac1107370c7384fbce6cc67ee3e3aa6475f807e
parent5bcbd6821a6ff1419f9069cf9e1a94c8557a992c
Do resampling in AudioDecoder rather than Player.

This fixes the problem where the decoder's position would not take
into account that all samples pushed into the resampler do not
always immediately come out.  This would result in Player thinking
that there would be gaps when there are not.
src/lib/audio_decoder.cc
src/lib/audio_decoder.h
src/lib/ffmpeg_decoder.cc
src/lib/player.cc
src/lib/player.h
src/lib/resampler.cc
src/lib/resampler.h