Many of the little demos have a default sample rate for the demo. This is fine, but if the AudioContext sample rate differs greatly from this, the playback of the saved audio buffer is resampled to the sample rate of the context. At least for Chrome, this is just a simple linear interpolation which doesn't work very well if the sample rates differ significantly.
So, as a way to alert the user, it would be nice to somehow inform him what the sample rate of the AudioContext is. And as a bonus, if the sample rate isn't specified for the snippet, perhaps it can be defaulted to the sample rate of the AudioContext.
Many of the little demos have a default sample rate for the demo. This is fine, but if the AudioContext sample rate differs greatly from this, the playback of the saved audio buffer is resampled to the sample rate of the context. At least for Chrome, this is just a simple linear interpolation which doesn't work very well if the sample rates differ significantly.
So, as a way to alert the user, it would be nice to somehow inform him what the sample rate of the AudioContext is. And as a bonus, if the sample rate isn't specified for the snippet, perhaps it can be defaulted to the sample rate of the AudioContext.