hcilab / BreathingSonarJS

A Javascript web-tool that monitors breathing using high-frequency sonar
1 stars 0 forks source link

Compatibility. Sonar Init Crashes in Firefox #7

Open aarontabor opened 4 years ago

aarontabor commented 4 years ago

This is a WebAudio browser-specific compatability issue... I must currently be relying on a non-standard implementation detail in Chrome...

This is the error message that appears in Firefox during sonar.init():

Screen Shot 2020-07-15 at 10 43 13 AM
aarontabor commented 4 years ago

This seems to be caused because I was explicitly assigning a sampling rate for the AudioStream (which was presumably different that the browser's default settings).

Errors go away and things seem to work with the default sampling - but leaving this open until I test more thoroughly.

aarontabor commented 4 years ago

Just so I remember this later - I corrected this issue in a downstream patch in the BubbleBreather project.