X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2Ffmod.h;h=0fa806520e8b6486d9ac557c28f67c48d2b1cceb;hb=fcc16085eb812a778eed023f4ad5c0b0bc158827;hp=729ab2008f69a10108f7ac804010aa4f241f8a61;hpb=0cca0c495c7dc29d134a10d7eed5de1f377c99bf;p=lugaru.git diff --git a/Source/fmod.h b/Source/fmod.h index 729ab20..0fa8065 100644 --- a/Source/fmod.h +++ b/Source/fmod.h @@ -1,17 +1,71 @@ -// wrapper for FMOD to account for filename conversions in windows +/* +Copyright (C) 2003, 2010 - Wolfire Games -#ifndef _FMODWRAPPER_H_ -#define _FMODWRAPPER_H_ +This file is part of Lugaru. -#include "fmod_header.h" -#include "WinDefs.h" +Lugaru is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#ifdef WIN32 +See the GNU General Public License for more details. -#define FSOUND_Sample_Load( a, b, c, d) FSOUND_Sample_Load( a, ConvertFileName( b), c, d, 0); +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ +// wrapper for FMOD to account for filename conversions in windows + +#ifndef _FMODWRAPPER_H_ +#define _FMODWRAPPER_H_ + +#if USE_OPENAL +#define FSOUND_3D_Listener_SetAttributes OPENAL_3D_Listener_SetAttributes +#define FSOUND_3D_SetAttributes OPENAL_3D_SetAttributes +#define FSOUND_3D_SetDopplerFactor OPENAL_3D_SetDopplerFactor +#define FSOUND_Close OPENAL_Close +#define FSOUND_GetCurrentSample OPENAL_GetCurrentSample +#define FSOUND_GetLoopMode OPENAL_GetLoopMode +#define FSOUND_GetPaused OPENAL_GetPaused +#define FSOUND_Init OPENAL_Init +#define FSOUND_IsPlaying OPENAL_IsPlaying +#define FSOUND_PlaySoundEx OPENAL_PlaySoundEx +#define FSOUND_Sample_Free OPENAL_Sample_Free +#define FSOUND_Sample_Load OPENAL_Sample_Load +#define FSOUND_Sample_SetMinMaxDistance OPENAL_Sample_SetMinMaxDistance +#define FSOUND_Sample_SetMode OPENAL_Sample_SetMode +#define FSOUND_SetFrequency OPENAL_SetFrequency +#define FSOUND_SetPaused OPENAL_SetPaused +#define FSOUND_SetSFXMasterVolume OPENAL_SetSFXMasterVolume +#define FSOUND_SetVolume OPENAL_SetVolume +#define FSOUND_StopSound OPENAL_StopSound +#define FSOUND_Stream_Close OPENAL_Stream_Close +#define FSOUND_Stream_GetSample OPENAL_Stream_GetSample +#define FSOUND_Stream_Open OPENAL_Stream_Open +#define FSOUND_Stream_PlayEx OPENAL_Stream_PlayEx +#define FSOUND_Stream_SetMode OPENAL_Stream_SetMode +#define FSOUND_Stream_Stop OPENAL_Stream_Stop +#define FSOUND_Update OPENAL_Update +#define FSOUND_SetOutput OPENAL_SetOutput #endif +#include "fmod_header.h" +#include "MacCompatibility.h" + +#if USE_OPENAL +# undef FSOUND_Sample_Load +# undef FSOUND_Stream_Open +# define FSOUND_Sample_Load(a, b, c, d, e) OPENAL_Sample_Load( a, ConvertFileName( b), c, d, e) +# define FSOUND_Stream_Open(a, b, c, d) OPENAL_Stream_Open(ConvertFileName(a), b, c, d) +#elif !PLATFORM_MACOSX +# define FSOUND_Sample_Load(a, b, c, d, e) FSOUND_Sample_Load( a, ConvertFileName( b), c, d, e) +# define FSOUND_Stream_Open(a, b, c, d) FSOUND_Stream_Open(ConvertFileName(a), b, c, d) +#endif #endif +