Mercurial > mxe-octave
diff src/openal-test.c @ 1235:7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Fri, 01 Oct 2010 02:03:08 +1000 |
parents | |
children | f653602a0500 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/openal-test.c Fri Oct 01 02:03:08 2010 +1000 @@ -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