diff options
author | Tony Theodore <tonyt@logyst.com> | 2010-09-30 16:03:08 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2010-09-30 16:03:08 (GMT) |
commit | c4a45ccd43dcb2f967b1a4e1f5e8719c2a4fbab6 (patch) | |
tree | a5dc4eb4455971480e0ecbf1ff125a2009226ab1 /src/openal-test.c | |
parent | 2022f74486442d0d65bf611244364be6cbb78d63 (diff) | |
download | mxe-c4a45ccd43dcb2f967b1a4e1f5e8719c2a4fbab6.zip mxe-c4a45ccd43dcb2f967b1a4e1f5e8719c2a4fbab6.tar.gz mxe-c4a45ccd43dcb2f967b1a4e1f5e8719c2a4fbab6.tar.bz2 |
package openal: combine patch files, portability fixes, and add test program
Diffstat (limited to 'src/openal-test.c')
-rw-r--r-- | src/openal-test.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/openal-test.c b/src/openal-test.c new file mode 100644 index 0000000..59f08cd --- /dev/null +++ b/src/openal-test.c @@ -0,0 +1,21 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <AL/alc.h> + +int main(int argc, char **argv) +{ + ALCdevice *dev; + ALCcontext *ctx; + + (void)argc; + (void)argv; + + dev = alcOpenDevice(0); + ctx = alcCreateContext(dev, 0); + + alcDestroyContext(ctx); + alcCloseDevice(dev); + + return 0; +}
\ No newline at end of file |