How to restart audio without rebooting (USB soundcard) - the nasty case

I have a very similar problem to this: Is there a way to restart audio without restarting a 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.

Edit:

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

  1. query the process ID of the audio service: sc queryex audiosrv
  2. headshot the process dude: taskkill /f /pid [process ID]

I'll update this question if it works, and provide you a batch file.

Edit 2:

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.


I can suggest you try the following, for what it is worth.

When you open the Device Manager go to View->Devices by connection. After the view changes find the USB HUB where your sound card is plugged in, and try do Disable/Enable it, and see what happens afterwards.

I have used this method to reinitialize USB Stick which I have previously ejected (right click -> eject).

Let me know what you think.


One more possible way to go around: unplug and replug the external sound card. It works for me recently.


I repeatedly have a similar problem and the following worked for me when this happens:

  • net stop audiosrv (Will stop the Creative Audio Service as well)
  • Go into the device manager and disable the device in Sound, video and game controllers
  • net start audiosrv
  • Enable the device

Now the sound works again

PS: To automate use https://superuser.com/a/560454/260770