mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-12 09:22:00 +00:00
hopefully fix build on gcc6, tiny cleanup
... in fact i forgot that much more cleanup was already done on the experimental branch. whatever.
This commit is contained in:
parent
96206dd82a
commit
84366ad533
3 changed files with 4 additions and 45 deletions
|
@ -21,42 +21,24 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#ifndef SOUNDMANAGER_H
|
||||
#define SOUNDMANAGER_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <queue>
|
||||
#include <set>
|
||||
#include "Vector.h"
|
||||
|
||||
// if using SDL_MIXER
|
||||
//const int BBGE_AUDIO_NOCHANNEL = -1;
|
||||
|
||||
|
||||
|
||||
#define BBGE_BUILD_FMODEX
|
||||
|
||||
//#define BBGE_BUILD_BASS20
|
||||
//#define BBGE_BUILD_SDLMIXER
|
||||
//#define BBGE_BUILD_IRRKLANG
|
||||
//#define BBGE_BUILD_OPENALOGG
|
||||
|
||||
|
||||
|
||||
#ifdef BBGE_BUILD_OPENALOGG
|
||||
const int BBGE_AUDIO_NOCHANNEL = -1;
|
||||
#elif defined(BBGE_BUILD_FMODEX)
|
||||
const int BBGE_AUDIO_NOCHANNEL = 0;
|
||||
#endif
|
||||
#define BBGE_AUDIO_NOCHANNEL NULL
|
||||
|
||||
const int BBGE_AUDIO_LOOPINFINITE = -1;
|
||||
const int BBGE_AUDIO_LOOPNONE = 0;
|
||||
|
||||
namespace SoundCore
|
||||
{
|
||||
#if defined(BBGE_BUILD_OPENALOGG)
|
||||
//struct Buffer;
|
||||
#elif defined(BBGE_BUILD_FMODEX)
|
||||
typedef void *Buffer;
|
||||
#endif
|
||||
}
|
||||
|
||||
enum SoundEffectType
|
||||
|
@ -105,7 +87,7 @@ enum SoundLoadType
|
|||
struct PlaySfx
|
||||
{
|
||||
PlaySfx() : priority(0.5), handle(0), vol(1), fade(SFT_NONE),
|
||||
time(0), freq(1), loops(0), channel(BBGE_AUDIO_NOCHANNEL),
|
||||
time(0), freq(1), loops(0),
|
||||
maxdist(0), x(0), y(0), relative(true), positional(false) {}
|
||||
|
||||
std::string name;
|
||||
|
@ -114,7 +96,6 @@ struct PlaySfx
|
|||
float time;
|
||||
float freq;
|
||||
int loops;
|
||||
int channel;
|
||||
float priority;
|
||||
float maxdist; // distance gain attenuation. if 0: use default value, -1: don't attenuate at all
|
||||
SoundFadeType fade;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue