Is it possible to specify the sampling rate (sampleRate attribute of the AudioContext object) for a real-time audio context?
For what I read, it is possible to specify the sampleRate for an OfflineAudioContext object (the constructor takes 3 arguments, the last one being the sample rate), but the real-time AudioContext doesn’t take any arguments.
I imagine is not possible, as probably that is defined by the browser itself, but maybe there’s a way?
No, it’s not possible to do this, other than setting the sampling rate of your sound card at the operating system level (not all i/o devices support this).