Recently, every time I run the Android Emulator, I lose all sound output on my laptop (running Windows 7) and have to restart to get it back. It’s very annoying. Particularly as I like to have music when coding.
I’ve been putting up with this for a while, assuming it was some complicated driver issue, but a chance Twitter encounter today led me to a colleague who’s been having the same kind of problem (although his was caused mainly by running Virtual Machines).
He’d managed to figure out that it was just the Windows Audio service that was messed up and all you needed to do was to restart it to get sound back. Simple!
He was even kind enough to share a simple bat script that would do it for me (Run as Administrator):