Skip to content

[openal] Preserve playback position across pitch changes - #28408

Open
dbartolini wants to merge 1 commit into
emscripten-core:mainfrom
dbartolini:fix/openal-pitch-change
Open

dbartolini wants to merge 1 commit into
emscripten-core:mainfrom
dbartolini:fix/openal-pitch-change

Conversation

@dbartolini

Copy link
Copy Markdown

Changing AL_PITCH while streaming audio with alSourceQueueBuffers() can leave an audible gap between buffers.

The OpenAL scheduler uses the new rate for audio that has already played. For example, if a two-second buffer slows to half speed after one second, Web Audio finishes it at three seconds. The scheduler starts the next buffer at four seconds, leaving a one-second gap.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant