Revert "Revert "AudioFlinger: fix timed audio""

This reverts commit 63d6a1b59200bc137175da3d4b3423e9f61cb1f4.