I have a very similar problem to this: Is there a way to restart audio without restarting windows 7 computer?
I've got a USB external sound card (Line6 UX1, the older one), the OS is Windows 7 x64.
At a random moment (either when I'm playing a movie or a game) it stops completely.
Variation one: absolutely no sound when playing back anything, but I can edit/playback music without problem through the ASIO drivers (i.e. from Sound Forge).
Variation two: absolutely no sound when playing back anything, and applications using the ASIO driver do not find the external sound card. Flash player freezes all browsers (most ads are now in flash) and also
iexplore.exe hungs playing the logoff sound.
I've tried almost everything: getting new drivers, disable/enable sound card through Sound menu (when I trying to disable it, it hangs forever or I cannot even access Sound menu at all!), I have tried even to disable USB management of Power options menu.
My last hope was
net stop audiosrv but it went to infinite loop as well (I had enough of it after writing dots on the screen for 5 minutes).
This thing drives me crazy. My hypothesis is that an exception occurs in one of the drivers, that crashes that part of the system. If I could locate that specific process, force kill it and restart, that'd be awesome.
I will try to check out this method next time the problem occurs (http://community.spiceworks.com/how_to/show/312-stop-a-hung-service):
- query the process ID of the audio service:
sc queryex audiosrv
- headshot the process dude:
taskkill /f /pid [process ID]
I'll update this question if it works, and provide you a batch file.
With this solution I could restart the Windows Audio service. It looked fine, until I wanted to play anything with audio. Playing goes for a second and stops (either an mp3 in a player or youtube). So the problem is nastier I thought. I'll check out the grounding issue next. Note: Soundcard still works with the ASIO drivers.