示例#1
0
irrklang::ISound* CSoundManager::playWithFeedback( const core::vector3df origin, const std::string& event )
{
	ISoundSource* sound = container->getSound(event);
	if(!sound)	//! \todo weitere errormöglichkeiten!
		return nullptr;

	sound->setDefaultVolume(0.0);
	sound->setDefaultMinDistance(250);
	return engine->play3D(sound, conv(origin), false, false, true);
}
示例#2
0
// *********************************************************************************
//   PLAY - FUNCTIONS
// --------------------
bool CSoundManager::play(const core::vector3df& origin, const std::string& event)
{
	ISoundSource* sound = container->getSound(event);
	if(!sound)	//! \todo weitere errormöglichkeiten!
		return false;

	sound->setDefaultVolume(1.0);
	sound->setDefaultMinDistance(250);
	engine->play3D(sound, conv(origin));
	return true;
}