• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unloading a sound driver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unloading a sound driver


  • Subject: Re: Unloading a sound driver
  • From: "B.J. Buchalter" <email@hidden>
  • Date: Tue, 21 Jan 2003 21:03:16 -0500

on 1/21/03 7:34 PM, Jeff Moore at email@hidden wrote:

> There are at least two processes that I know of that are around for the
> entire login session that will retain references to all the audio
> devices on the system:
>
> - The LoginWindow process will have a reference to all the audio
> devices in the system once an alert sound or an interface sound effect
> is played.
>
> - The SystemUIServer process will also have references to all the
> devices if you use the volume keys on the keyboard or the menu bar
> volume widget.
>
> As B.J. says, kextunload ought to force things to unload. I'm not
> certain as to how safe this option is. There may be issues if the
> device is actively doing IO.
>
> Another way that is 100% safe is to log out, and log back in as
> ">console". This will drop you into the console shell without the
> window server running. From there, you can pretty much do whatever.
>

To add to the above, it is probably a really good idea to ensure that all
your files are saved before doing the kextunload dance -- every once and a
while I have seen LoginWindow and/or SystemUIServer crash after kextunload.
This, of course, ends your login session and will terminate all your running
apps. But this is really rare, and the 100% safe way is really slow if you
are cycling quickly.

Best regards,

B.J. (a veteran of literally hundreds of unloads/reloads)


B.J. Buchalter

Metric Halo
M/S 601 - Building 8
Castle Point Campus
Castle Point, NY 12511-0601 USA
tel +1 845 831-8600
fax +1 603 250-2451

If you haven't heard ChannelStrip yet, you don't know what you're missing!

Check out SpectraFoo, ChannelStrip and Mobile I/O at http://www.mhlabs.com/

Download a 12 day demo from <http://www.mhlabs.com/demo/>
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Unloading a sound driver (From: Jeff Moore <email@hidden>)

  • Prev by Date: Re: Unloading a sound driver
  • Next by Date: ANN: Buffer Override AU with GUI
  • Previous by thread: Re: Unloading a sound driver
  • Next by thread: ANN: Buffer Override AU with GUI
  • Index(es):
    • Date
    • Thread