Tempo and pitch on Windows/Android
Offen
- Vorherrschende Sprache
- Shell
- Sterne
- 403
- Forks
- 44
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Some platforms/systems use a sampleRate of 48000. This results in faster, higher pitched play back. The fix is to use the `sampleRate` from the audio context:
```javascript
_loadSong(midiBuf) {
const optsPtr = this._lib._mid_alloc_options(
this._audioContext.sampleRate || DEFAULT_SAMPLE_RATE,
AUDIO_FORMAT,
NUM_CHANNELS,
BUFFER_SIZE
)
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.