shinysdr icon indicating copy to clipboard operation
shinysdr copied to clipboard

Audio toolbox: allow non-default sample rates

Open kpreid opened this issue 3 years ago • 0 comments

audio-spectrum-main.js constructs an AudioContext with the default sample rate, but this may not be the best sample rate available for a given input device. Detect what that sample rate is and re-create the context to suit. This will require consulting MediaStreamTrack.getCapabilities(), and refactoring to allow replacing the AudioContext after startup.

kpreid avatar May 01 '21 20:05 kpreid