openmw-tes3coop/apps/openmw/mwsound/sound_buffer.hpp
Chris Robinson 4571218827 Load the sound as needed and pass it directly to the play methods
This breaks say sounds, loudness handling, and the cache limit. Fixes are
forthcoming.
2015-11-25 04:24:22 -08:00

29 lines
614 B
C++

#ifndef GAME_SOUND_SOUND_BUFFER_H
#define GAME_SOUND_SOUND_BUFFER_H
#include <string>
#include "soundmanagerimp.hpp"
#include "sound_output.hpp"
#include "../mwworld/ptr.hpp"
namespace MWSound
{
class Sound_Buffer
{
public:
std::string mResourceName;
float mVolume;
float mMinDist, mMaxDist;
Sound_Handle mHandle;
Sound_Buffer(std::string resname, float volume, float mindist, float maxdist)
: mResourceName(resname), mVolume(volume), mMinDist(mindist), mMaxDist(maxdist), mHandle(0)
{ }
};
}
#endif /* GAME_SOUND_SOUND_BUFFER_H */