16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 00:09:18 +02:00

removed dependencies on the old parser. The code can now be compiled outside of Borland C++

This commit is contained in:
tmj-fstate
2017-01-15 15:04:17 +01:00
parent 7df7c8b76e
commit 15cf3d73a8
87 changed files with 3395 additions and 3232 deletions

View File

@@ -10,12 +10,9 @@ http://mozilla.org/MPL/2.0/.
#ifndef RealSoundH
#define RealSoundH
#include "system.hpp"
#include "classes.hpp"
#include <string>
#include "Sound.h"
#include "Geometry.h"
#include <string>
class TRealSound
{
@@ -38,7 +35,7 @@ class TRealSound
bool freqmod = false, double rmin = 0.0);
~TRealSound();
void Free();
void Init(const char *SoundName, double SoundAttenuation, double X, double Y, double Z, bool Dynamic,
void Init(std::string const &SoundName, double SoundAttenuation, double X, double Y, double Z, bool Dynamic,
bool freqmod = false, double rmin = 0.0);
double ListenerDistance(vector3 ListenerPosition);
void Play(double Volume, int Looping, bool ListenerInside, vector3 NewPosition);
@@ -54,12 +51,12 @@ class TRealSound
class TTextSound : public TRealSound
{ // dźwięk ze stenogramem
AnsiString asText;
std::string asText;
float fTime; // czas trwania
public:
TTextSound(const char *SoundName, double SoundAttenuation, double X, double Y, double Z,
bool Dynamic, bool freqmod = false, double rmin = 0.0);
void Init(const char *SoundName, double SoundAttenuation, double X, double Y, double Z,
void Init(std::string const &SoundName, double SoundAttenuation, double X, double Y, double Z,
bool Dynamic, bool freqmod = false, double rmin = 0.0);
void Play(double Volume, int Looping, bool ListenerInside, vector3 NewPosition);
};