You need to use a sound daemon like
jack (or esd/artsd etc).
You may need to specify a backend driver when starting jackd, presumably alsa.
then configure your software to use jack (assuming it supports jack of course).
Not everything will have jack support yet, so you may need to kill the server for some apps (e.g. games), but most modern audio/video software should support it.