emscripten-core / emscripten-core/emscripten
AL_FORMAT_STEREO_FLOAT32 is not defined
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
When including `AL/al.h`,
```
#define AL_FORMAT_STEREO_FLOAT32 0x10011
#define AL_FORMAT_MONO_FLOAT32 0x10010
```
are not defined in [`AL/al.h`](https://github.com/emscripten-core/emscripten/blob/incoming/system/include/AL/al.h) even though [the documentation states](https://emscripten.org/docs/porting/Audio.html#useful-implementation-details-of-openal-capture)
>Internally, Web Audio’s capture data is always backed by a Javascript Float32Array. Thus, AL_FORMAT_MONO_FLOAT32 and AL_FORMAT_STEREO_FLOAT32 are the only formats which do not require converting acquired samples from their initial type to another.
To me it would hence make sense to define these two values in `system/include/AL/al.h`. Or is there a reason not to?
Contributor guide
Assessment
This issue has not been assessed yet.