|
|
|
@ -248,14 +248,13 @@ namespace MWSound
|
|
|
|
|
return;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
// The range values are not tested
|
|
|
|
|
float basevol = volumeFromType(Play_TypeVoice);
|
|
|
|
|
std::string filePath = "Sound/"+filename;
|
|
|
|
|
const ESM::Position &pos = ptr.getRefData().getPosition();
|
|
|
|
|
const Ogre::Vector3 objpos(pos.pos);
|
|
|
|
|
|
|
|
|
|
MWBase::SoundPtr sound = mOutput->playSound3D(filePath, objpos, 1.0f, basevol, 1.0f,
|
|
|
|
|
20.0f, 12750.0f, Play_Normal|Play_TypeVoice, 0);
|
|
|
|
|
20.0f, 1500.0f, Play_Normal|Play_TypeVoice, 0);
|
|
|
|
|
mActiveSounds[sound] = std::make_pair(ptr, std::string("_say_sound"));
|
|
|
|
|
}
|
|
|
|
|
catch(std::exception &e)
|
|
|
|
|