2015-11-22 12:53:24 +00:00
|
|
|
#ifndef GAME_SOUND_SOUND_BUFFER_H
|
|
|
|
#define GAME_SOUND_SOUND_BUFFER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "soundmanagerimp.hpp"
|
2015-11-23 09:01:20 +00:00
|
|
|
#include "sound_output.hpp"
|
2015-11-23 10:08:27 +00:00
|
|
|
#include "loudness.hpp"
|
2015-11-22 12:53:24 +00:00
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
|
|
|
namespace MWSound
|
|
|
|
{
|
|
|
|
class Sound_Buffer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string mResourceName;
|
|
|
|
|
|
|
|
float mVolume;
|
|
|
|
float mMinDist, mMaxDist;
|
|
|
|
|
2015-11-23 09:01:20 +00:00
|
|
|
Sound_Handle mHandle;
|
|
|
|
|
2015-11-25 11:34:44 +00:00
|
|
|
size_t mUses;
|
2015-11-23 15:50:46 +00:00
|
|
|
|
2015-11-22 12:53:24 +00:00
|
|
|
Sound_Buffer(std::string resname, float volume, float mindist, float maxdist)
|
2015-11-25 11:34:44 +00:00
|
|
|
: mResourceName(resname), mVolume(volume), mMinDist(mindist), mMaxDist(maxdist), mHandle(0), mUses(0)
|
2015-11-22 12:53:24 +00:00
|
|
|
{ }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* GAME_SOUND_SOUND_BUFFER_H */
|