Mercurial > mxe-octave
annotate src/openal-test.c @ 4355:7f5714e37725
gnupplot: use -std=gnu++11 option when compiling gnuplot for mingw
* src/gnuplot add -std=gnu++11 to CXX
author | John D |
---|---|
date | Thu, 23 Feb 2017 14:08:40 -0500 |
parents | 99516e73b368 |
children |
rev | line source |
---|---|
2351
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
1 /* |
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
2 * This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2351
diff
changeset
|
3 * See index.html for further information. |
2351
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
4 */ |
1235
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
5 |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
6 #include <AL/alc.h> |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
7 |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
8 int main(int argc, char **argv) |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
9 { |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
10 ALCdevice *dev; |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
11 ALCcontext *ctx; |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
12 |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
13 (void)argc; |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
14 (void)argv; |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
15 |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
16 dev = alcOpenDevice(0); |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
17 ctx = alcCreateContext(dev, 0); |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
18 |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
19 alcDestroyContext(ctx); |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
20 alcCloseDevice(dev); |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
21 |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
22 return 0; |
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1235
diff
changeset
|
23 } |