Track the fade time in between the start and end
commitd67ba3ba5fe427e33c5f743487db78662595c41e
authorChris Robinson <chris.kcat@gmail.com>
Sat, 2 Dec 2017 05:33:52 +0000 (1 21:33 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Sat, 2 Dec 2017 05:33:52 +0000 (1 21:33 -0800)
tree5ccef5e1faa48dae67d334a3e6cd3254e06c243c
parent999f725cedea641a1c7b0de61f937ec6b494d7a5
Track the fade time in between the start and end

Instead of keeping track of the last fade time and gain, and applying a
percentage of the remaining for each update, just track the current time as it
moves between the start and end time. This should provide more accurate results
as the timer increments.
src/context.cpp
src/source.cpp
src/source.h