X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2Ffmod.h;h=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hb=0acdb5e7e90ddd677a5e72cc97731dad12edf230;hp=0fa806520e8b6486d9ac557c28f67c48d2b1cceb;hpb=44146d06c780d3aaa283672fedb08b8870ebe1b9;p=lugaru.git diff --git a/Source/fmod.h b/Source/fmod.h index 0fa8065..e69de29 100644 --- a/Source/fmod.h +++ b/Source/fmod.h @@ -1,71 +0,0 @@ -/* -Copyright (C) 2003, 2010 - Wolfire Games - -This file is part of Lugaru. - -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. - -See the GNU General Public License for more details. - -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 -