annotate src/openal-test.c @ 7220:d3087afece14 default tip @

* src/gdal.mk, src/xcb.mk: disable doxygen docs
author John Donoghue <john.donoghue@ieee.org>
date Wed, 22 May 2024 10:31:54 -0400
parents 99516e73b368
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 }