I'm trying to force a single page that's playing audio through javascript to use a different soundcard from the rest of the browser(from the rest of the system actually). My current understanding is that a browser doesn't access the soundcard sink directly, but delegates to the plugin that wants to play audio. This should theoretically make it possible for javascript to use a different sound sink than flash, or any other plugin. Whether it's actually possible...
Note that this isn't intended to be distributed, I'm only trying to change the output on one computer, through the console or similar.