emscripten-core / emscripten-core/emscripten

AL_FORMAT_STEREO_FLOAT32 is not defined

Open
#9,851 3 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

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

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.