]> git.jsancho.org Git - lugaru.git/blob - Source/fmod.h
Added GPL license and headers.
[lugaru.git] / Source / fmod.h
1 /*
2 Copyright (C) 2003, 2010 - Wolfire Games
3
4 This file is part of Lugaru.
5
6 Lugaru is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
14
15 See the GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 */
21
22 // wrapper for FMOD to account for filename conversions in windows
23
24 #ifndef _FMODWRAPPER_H_
25 #define _FMODWRAPPER_H_
26
27 #if USE_OPENAL
28 #define FSOUND_3D_Listener_SetAttributes OPENAL_3D_Listener_SetAttributes
29 #define FSOUND_3D_SetAttributes OPENAL_3D_SetAttributes
30 #define FSOUND_3D_SetDopplerFactor OPENAL_3D_SetDopplerFactor
31 #define FSOUND_Close OPENAL_Close
32 #define FSOUND_GetCurrentSample OPENAL_GetCurrentSample
33 #define FSOUND_GetLoopMode OPENAL_GetLoopMode
34 #define FSOUND_GetPaused OPENAL_GetPaused
35 #define FSOUND_Init OPENAL_Init
36 #define FSOUND_IsPlaying OPENAL_IsPlaying
37 #define FSOUND_PlaySoundEx OPENAL_PlaySoundEx
38 #define FSOUND_Sample_Free OPENAL_Sample_Free
39 #define FSOUND_Sample_Load OPENAL_Sample_Load
40 #define FSOUND_Sample_SetMinMaxDistance OPENAL_Sample_SetMinMaxDistance
41 #define FSOUND_Sample_SetMode OPENAL_Sample_SetMode
42 #define FSOUND_SetFrequency OPENAL_SetFrequency
43 #define FSOUND_SetPaused OPENAL_SetPaused
44 #define FSOUND_SetSFXMasterVolume OPENAL_SetSFXMasterVolume
45 #define FSOUND_SetVolume OPENAL_SetVolume
46 #define FSOUND_StopSound OPENAL_StopSound
47 #define FSOUND_Stream_Close OPENAL_Stream_Close
48 #define FSOUND_Stream_GetSample OPENAL_Stream_GetSample
49 #define FSOUND_Stream_Open OPENAL_Stream_Open
50 #define FSOUND_Stream_PlayEx OPENAL_Stream_PlayEx
51 #define FSOUND_Stream_SetMode OPENAL_Stream_SetMode
52 #define FSOUND_Stream_Stop OPENAL_Stream_Stop
53 #define FSOUND_Update OPENAL_Update
54 #define FSOUND_SetOutput OPENAL_SetOutput
55 #endif
56
57 #include "fmod_header.h"
58 #include "MacCompatibility.h"
59
60 #if USE_OPENAL
61 #  undef FSOUND_Sample_Load
62 #  undef FSOUND_Stream_Open
63 #  define FSOUND_Sample_Load(a, b, c, d, e) OPENAL_Sample_Load( a, ConvertFileName( b), c, d, e)
64 #  define FSOUND_Stream_Open(a, b, c, d) OPENAL_Stream_Open(ConvertFileName(a), b, c, d)
65 #elif !PLATFORM_MACOSX
66 #  define FSOUND_Sample_Load(a, b, c, d, e) FSOUND_Sample_Load( a, ConvertFileName( b), c, d, e)
67 #  define FSOUND_Stream_Open(a, b, c, d) FSOUND_Stream_Open(ConvertFileName(a), b, c, d)
68 #endif
69
70 #endif
71