[webkit-help] Choosing Audio Devices?

Simon Fraser simon.fraser at apple.com
Mon Nov 28 10:54:17 PST 2011


On Nov 22, 2011, at 12:29 PM, Seth Willits wrote:

> 
> Is there any way to direct WebKit to use a particular audio device? (Specifically on Mac OS X.)
> 
> I took a look through the source code for the first time, and it seems that in WebCore/platform/audio/mac/AudioDestinationMac.cpp, it limits all audio to playing over the system default output device. What I'm hoping is that there's some what to direct it to use a particular device, and then WebKit proper and all of the plugins will use that device.

platform/audio is used by the Web Audio APIs <https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html> only and not other audio output (plug-ins, media etc).

> Even directing WebKit to use a particular device, I'm not sure that it would mean all of the plugins (Flash and Silverlight particularly) would use use that same device, or if they bypass WebKit altogether when playing their audio — I'm just not sure how the plugin architecture works.

Why do you need to do this?

Simon



More information about the webkit-help mailing list