Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/openal-0.0.8/src/extensions/al_ext_vorbis.h @ 17

Last change on this file since 17 was 17, checked in by landauf, 16 years ago

added openal

File size: 1.2 KB
Line 
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 */
21ALint 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 */
Note: See TracBrowser for help on using the repository browser.