Skip to content

Commit b236d1d

Browse files
committed
Update existing openal tests to use alext.h
1 parent 10c4db3 commit b236d1d

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

test/openal_capture.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
#endif
2525
#include <AL/al.h>
2626
#include <AL/alc.h>
27-
#ifdef ASSUME_AL_FLOAT32
28-
#define AL_FORMAT_MONO_FLOAT32 0x10010
29-
#define AL_FORMAT_STEREO_FLOAT32 0x10011
30-
#endif
27+
#include <AL/alext.h>
3128

3229
const char* alformat_string(ALenum format) {
3330
switch(format) {

test/openal_capture_sanity.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@
2727
#endif
2828
#include <AL/al.h>
2929
#include <AL/alc.h>
30-
31-
#ifdef ASSUME_AL_FLOAT32
32-
// We, in particular, are expected to support this, since
33-
// this is the data type used by Web Audio.
34-
#define AL_FORMAT_MONO_FLOAT32 0x10010
35-
#define AL_FORMAT_STEREO_FLOAT32 0x10011
36-
#endif
30+
#include <AL/alext.h>
3731

3832
#define countof(x) (sizeof(x)/sizeof((x)[0]))
3933

test/openal_extensions.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <stdlib.h>
88
#ifdef __EMSCRIPTEN__
99
#include <emscripten.h>
10-
#define ASSUME_AL_FLOAT32
1110
#endif
1211
#include <AL/al.h>
1312
#include <AL/alc.h>

0 commit comments

Comments
 (0)