Skip to content

Tempo and pitch on Windows/Android #14

@nwsw

Description

@nwsw

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:

_loadSong(midiBuf) {
	const optsPtr = this._lib._mid_alloc_options(
		this._audioContext.sampleRate || DEFAULT_SAMPLE_RATE,
		AUDIO_FORMAT,
		NUM_CHANNELS,
		BUFFER_SIZE
	)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions