about deciding the sample rate when AudioContext is created

In the spec section 15, some performance considerations are listed.

15.3.4. Sample Rate
For very slow devices, it may be worth considering running the rendering at a lower sample-rate than normal. For example, the sample-rate can be reduced from 44.1KHz to 22.05KHz. This decision must be made when the AudioContext is created, because changing the sample-rate on-the-fly can be difficult to implement and will result in audible glitching when the transition is made.

Should we provide method to let developer use a specific sample rate when creating AudioContext? That is, pass a sample rate to AudioContext() like OfflineAudioContext? If not, how to use lower sample rate when the AudioContext is created?

Or leave it to let browser vendor to decide the sample rate when AudioContext is created?


Best Regards

James

Received on Thursday, 24 January 2013 01:23:48 UTC