Proper Audio/Video Dumping

READY TO MERGE

Screwed up the previous PR, replacing with new PR

Old notes: https://github.com/dolphin-emu/dolphin/pull/1183
Are you sure that making this a local static variable will work fine with regards to savestates, restarting emulation and other scenarios?