1 | /* -*- mode: C; tab-width:8; c-basic-offset:8 -*- |
---|
2 | * vi:set ts=8: |
---|
3 | * |
---|
4 | * al_ext_vorbis.h |
---|
5 | * |
---|
6 | * Hack. |
---|
7 | */ |
---|
8 | #ifndef AL_EXT_VORBIS |
---|
9 | #define AL_EXT_VORBIS |
---|
10 | |
---|
11 | #include <AL/al.h> |
---|
12 | |
---|
13 | /* |
---|
14 | * Vorbis_Callback( ALuint sid, ALuint bid, |
---|
15 | * ALshort *outdata, |
---|
16 | * ALenum format, ALint freq, ALint samples ) |
---|
17 | * |
---|
18 | * Callback which enabled alutLoadVorbis_LOKI to work. |
---|
19 | * |
---|
20 | */ |
---|
21 | ALint Vorbis_Callback(ALuint sid, ALuint bid, |
---|
22 | ALshort *outdata, |
---|
23 | ALenum format, ALint freq, ALint samples); |
---|
24 | |
---|
25 | #ifndef OPENAL_EXTENSION |
---|
26 | |
---|
27 | #ifdef ENABLE_EXTENSION_AL_EXT_VORBIS |
---|
28 | |
---|
29 | |
---|
30 | /* |
---|
31 | * we are being built into the standard library, so inform |
---|
32 | * the extension registrar |
---|
33 | */ |
---|
34 | #define BUILTIN_EXT_VORBIS \ |
---|
35 | AL_EXT_PAIR(alutLoadVorbis_LOKI) |
---|
36 | |
---|
37 | /* initialization and destruction functions |
---|
38 | * |
---|
39 | * none needed for vorbis |
---|
40 | */ |
---|
41 | |
---|
42 | #define BUILTIN_EXT_VORBIS_INIT |
---|
43 | #define BUILTIN_EXT_VORBIS_FINI |
---|
44 | |
---|
45 | #else |
---|
46 | |
---|
47 | /* |
---|
48 | * Without libvorvis (--enable-vorbis) we can't do vorbis, so we |
---|
49 | * don't define any extensions, or init/fini functions. |
---|
50 | */ |
---|
51 | |
---|
52 | #define BUILTIN_EXT_VORBIS_INIT |
---|
53 | #define BUILTIN_EXT_VORBIS_FINI |
---|
54 | |
---|
55 | #endif /* ENABLE_EXTENSION_AL_EXT_VORBIS */ |
---|
56 | |
---|
57 | #endif /* OPENAL_EXTENSION */ |
---|
58 | |
---|
59 | #endif /* AL_EXT_VORBIS */ |
---|