The browser doesn't guarantee that it returns a track from getUserMedia matching the constraints that you've passed to it - it's a fuzzy kind of match. So it may give you back a track with an entirely different sampleRate to what you asked for.
If that's the case, now we actually use the correct sample rate (from the track) instead of what the user supplied.
Closes #30
The browser doesn't guarantee that it returns a track from
getUserMedia
matching the constraints that you've passed to it - it's a fuzzy kind of match. So it may give you back a track with an entirely differentsampleRate
to what you asked for.If that's the case, now we actually use the correct sample rate (from the track) instead of what the user supplied.