Hi, I'm Stephen Nicholas.

And this is my blog. I'm a software engineer by trade (but mostly for fun) with a wide variety of experience and interests. Some of which I'll write about here.

Reclaiming Windows Audio from Android Emulators & VMs

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):

@echo off  
ECHO =====================================================  
ECHO Restarting Windows Audio  
ECHO =====================================================  
net stop "Windows Audio";  
net start "Windows Audio";