[WIP] Proper Audio/Video Dumping

Screwed up the previous PR, replacing with new PR

Old notes: https://github.com/dolphin-emu/dolphin/pull/1183
you shouldn't need to save anything, just set whatever variable holds the tick count of the last frame equal to CoreTiming::GetTicks()