- From: Ampy <amit99rs@gmail.com>
- Date: Wed, 17 Aug 2011 22:38:41 -0700 (PDT)
- To: public-audio@w3.org
hi all, I have the following query about webaudio api raised on chromium-dev forum. Pls go through my queries and please provide ur valuable inputs. Thanks, Ampy Subject: WebAudio API for audio output devices eg.: speaker, headphone,earpiece To: Chromium-dev hi Chromium-developers, I have a query regarding WebAudio API. (webaudio spec url :https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/ specification.html... ..Also,https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/ specification.html...) Here, AudioDestination is the output device. Is there a way to specify on which audio output device the audio should be played ? Or can we add / modify webaudio api source code for this purpose? Example usage expected of audioDestination : 1. This is the sample code given in the above spec url : // Connect node to final destination node.connect(context.destination); 2 . My requirement of specifying the output device and the sample code : // Connect node to final destination ( destination may be any of the audio output device eg. speaker, headphone,earpiece etc.) node.connect(context.destination.speaker); or node.connect(context.destination.headphone); or node.connect(context.destination.earpiece); 1)) Is the above approach of specifying audio output device is fine ? 2)) Or the approach of using 'audiooutput' tag in the html audio element is better? eg. <audio src="myfile.wav" controls="controls" audiooutput="headphone"> Your browser doesn't support audio element </ audio> Or there exist other alternatives? Please suggest which approach is better. Please suggest how it can be implemented with the Web Audio API. Thanks, Ampy
Received on Thursday, 18 August 2011 10:10:45 UTC