If your CD won’t eject from your Mac (for example, say, if you’re running the Leopard developer preview and the stupid mdimport process is locking files inappropriately…), the good ol’ -f (force) flag on umount will be your saviour:

  • sudo umount -f /Volumes/"AUDIO CD" (or whatever the volume name is)
  • Press the Eject key