mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 03:44:00 +02:00
- added leak_dumper header all over the place (not yet functional in linux)
- Bugfix for particle cleanup
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
//This file is part of Glest Shared Library (www.glest.org)
|
||||
//Copyright (C) 2005 Matthias Braun <matze@braunis.de>
|
||||
|
||||
//You can redistribute this code 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.
|
||||
|
||||
#ifndef _SHARED_SOUND_SOUNDFACTORYSDL_H_
|
||||
#define _SHARED_SOUND_SOUNDFACTORYSDL_H_
|
||||
|
||||
#include "sound_factory.h"
|
||||
#include "sound_player_openal.h"
|
||||
#include "leak_dumper.h"
|
||||
|
||||
namespace Shared{ namespace Sound{ namespace OpenAL{
|
||||
|
||||
// ===============================
|
||||
// class SoundFactoryOpenAL
|
||||
// ===============================
|
||||
|
||||
class SoundFactoryOpenAL : public SoundFactory{
|
||||
public:
|
||||
virtual SoundPlayer* newSoundPlayer() {return new SoundPlayerOpenAL();}
|
||||
};
|
||||
|
||||
}}}//end namespace
|
||||
|
||||
#endif
|
@@ -11,12 +11,11 @@
|
||||
#include "sound_player.h"
|
||||
#include "platform_util.h"
|
||||
#include "platform_common.h"
|
||||
|
||||
#include <SDL.h>
|
||||
#include <AL/alc.h>
|
||||
#include <AL/al.h>
|
||||
|
||||
#include <vector>
|
||||
#include "leak_dumper.h"
|
||||
|
||||
using std::vector;
|
||||
using namespace Shared::PlatformCommon;
|
||||
|
@@ -14,6 +14,7 @@
|
||||
|
||||
#include <string>
|
||||
#include "sound_file_loader.h"
|
||||
#include "leak_dumper.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace Shared::Platform;
|
||||
|
32
source/shared_lib/include/sound/sound_factory.h
Normal file
32
source/shared_lib/include/sound/sound_factory.h
Normal file
@@ -0,0 +1,32 @@
|
||||
// ==============================================================
|
||||
// This file is part of Glest Shared Library (www.glest.org)
|
||||
//
|
||||
// Copyright (C) 2001-2008 Martio Figueroa
|
||||
//
|
||||
// You can redistribute this code 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
|
||||
// ==============================================================
|
||||
|
||||
#ifndef _SHARED_SOUND_SOUNDFACTORY_H_
|
||||
#define _SHARED_SOUND_SOUNDFACTORY_H_
|
||||
|
||||
#include "sound_player.h"
|
||||
#include "leak_dumper.h"
|
||||
|
||||
namespace Shared{ namespace Sound{
|
||||
|
||||
// =====================================================
|
||||
// class SoundFactory
|
||||
// =====================================================
|
||||
|
||||
class SoundFactory{
|
||||
public:
|
||||
virtual ~SoundFactory(){}
|
||||
virtual SoundPlayer *newSoundPlayer() {return NULL;}
|
||||
};
|
||||
|
||||
}}//end namespace
|
||||
|
||||
#endif
|
@@ -10,7 +10,7 @@
|
||||
#define _SHARED_SOUND_SOUNDFACTORY_NONEL_H_
|
||||
|
||||
#include "sound_factory.h"
|
||||
//#include "sound_player_openal.h"
|
||||
#include "leak_dumper.h"
|
||||
|
||||
namespace Shared{ namespace Sound{
|
||||
|
||||
|
@@ -14,9 +14,9 @@
|
||||
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
||||
#include "types.h"
|
||||
#include "factory.h"
|
||||
#include "leak_dumper.h"
|
||||
|
||||
struct OggVorbis_File;
|
||||
|
||||
|
@@ -13,6 +13,7 @@
|
||||
#define _SHARED_SOUND_SOUNDINTERFACE_H_
|
||||
|
||||
#include "sound_factory.h"
|
||||
#include "leak_dumper.h"
|
||||
|
||||
namespace Shared{ namespace Sound{
|
||||
|
||||
|
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "sound.h"
|
||||
#include "types.h"
|
||||
#include "leak_dumper.h"
|
||||
|
||||
using Shared::Platform::uint32;
|
||||
|
||||
|
Reference in New Issue
Block a user