Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added openal

File size: 1.1 KB
Line 
1/* -*- mode: C; tab-width:8; c-basic-offset:8 -*-
2 * vi:set ts=8:
3 *
4 * al_ext_mp3.h
5 *
6 * Hack.
7 */
8#ifndef AL_EXT_MP3
9#define AL_EXT_MP3
10
11#include <AL/alext.h>
12
13/*
14 *  MP3_Callback( ALuint sid, ALuint bid,
15 *                ALshort *outdata,
16 *                ALenum format, ALint freq, ALint samples);
17 *
18 * Callback function implementing mp3 decoding.
19 */
20ALint MP3_Callback(ALuint sid, ALuint bid,
21                             ALshort *outdata,
22                             ALenum format, ALint freq, ALint samples);
23
24#ifndef OPENAL_EXTENSION
25
26#ifdef ENABLE_EXTENSION_AL_EXT_MP3
27
28
29/*
30 * we are being built into the standard library, so inform
31 * the extension registrar
32 */
33#define BUILTIN_EXT_MP3                                       \
34        AL_EXT_PAIR(alutLoadMP3_LOKI)
35
36/* initialization and destruction functions */
37
38#define BUILTIN_EXT_MP3_INIT
39#define BUILTIN_EXT_MP3_FINI
40
41#else
42
43/*
44 * Without smpeg support (--enable-smpeg) we can't do mp3s, so we
45 * don't define any extensions.
46 */
47
48#define BUILTIN_EXT_MP3_INIT
49#define BUILTIN_EXT_MP3_FINI
50
51#endif /* ENABLE_EXTENSION_AL_EXT_MP3 */
52
53#endif /* OPENAL_EXTENSION */
54
55#endif /* AL_EXT_MP3 */
Note: See TracBrowser for help on using the repository browser.