[mediacapture-output] Sample rate can change when an `AudioContext` is running

padenot has just created a new issue for 
https://github.com/w3c/mediacapture-output:

== Sample rate can change when an `AudioContext` is running ==
> Requiring the sink ID to be set at construction time simplifies the 
implementation, since the output sample rate is fixed. 

Changing the sample-rate of a device while it is in use is something 
that can be done on all major desktop operating systems. This sentence
 implies that this is not the case.

I agree that it's hard to change the sample-rate of an `AudioContext`,
 but it's not hard to change it from a device to another, and should 
be supported.

Of course, in practice and if necessary, UAs will insert a resampler 
somewhere in the rendering pipeline so that the `AudioContext` can 
still render the audio at the original sample-rate, and everything 
will continue running smoothly.

Please view or discuss this issue at 
https://github.com/w3c/mediacapture-output/issues/50 using your GitHub
 account

Received on Thursday, 20 October 2016 16:02:45 UTC