emscripten-core / emscripten-core/emscripten

Repeated captureSamples calls register unexpected behavior

Open
#11,616 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Repeated calls to alcCaptureSamples without stopping audio capture, result in garbled reading of audio on all but the first call.

**Reproducibility:** A sample code exhibiting the issue can be found at [gist](https://gist.github.com/krunal-shah/570738c428dd822feafff4e29e1a57e6). The description of reproducing the issue can be found at the top of the sample code. It can be compiled and run using
1. `emcc -lopenal bug_sample.cpp -o bug_sample.html`
2. `python -m SimpleHTTPServer 8080`
3. Visit `localhost:8080/*path to bug_sample.html*`

**Details:** A doc describing the bug in detail, possible reason for the bug and a potential solution can be found at [doc](https://docs.google.com/document/d/10qJR_-itwlsb0VMAN84sCjbVOF99ZA-5yYcKlgv_cig/edit?usp=sharing).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.