feross / timidity

Play MIDI files in the browser w/ Web Audio, WebAssembly, and libtimidity
https://bitmidi.com
MIT License
368 stars 38 forks source link

Use the runtime `sampleRate` from the audioContext #15

Closed nwsw closed 1 year ago

nwsw commented 3 years ago

This fixes a problem (#14) on some platforms that use a sample rate of 48000, which results in faster, higher pitch play back.

nwsw commented 3 years ago

Given the web assembly dependency, the DEFAULT_SAMPLE_RATE could probably be removed, as any browser supporting wasm will likely also support sampleRate.

nwsw commented 1 year ago

Withdrawn, as migration to audioWorklet renders this moot.