From: <sv...@ww...> - 2006-04-08 21:05:27
|
Author: mkrose Date: 2006-04-08 14:05:20 -0700 (Sat, 08 Apr 2006) New Revision: 1880 Modified: trunk/csp/cspsim/Engine.cpp Log: Tweak debug logging for engine sound initialization. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1880 Modified: trunk/csp/cspsim/Engine.cpp =================================================================== --- trunk/csp/cspsim/Engine.cpp 2006-04-08 21:02:55 UTC (rev 1879) +++ trunk/csp/cspsim/Engine.cpp 2006-04-08 21:05:20 UTC (rev 1880) @@ -86,21 +86,22 @@ void Engine::bindSounds(SoundModel* model, ResourceBundle* bundle) { assert(model); - CSPLOG(INFO, AUDIO) << "Engine::bindSounds"; + CSPLOG(DEBUG, AUDIO) << "Engine::bindSounds"; if (bundle) { - CSPLOG(INFO, AUDIO) << "Engine::bindSounds have bundle"; + CSPLOG(DEBUG, AUDIO) << "Engine::bindSounds have bundle"; Ref<const SoundSample> sample(bundle->getSoundSample("engine")); m_EngineSound = SoundEffect::ExternalSound(sample, model); if (m_EngineSound.valid()) { - CSPLOG(INFO, AUDIO) << "Engine::bindSounds have sound"; + CSPLOG(DEBUG, AUDIO) << "Engine::bindSounds have sound"; m_EngineSound->state()->setPosition(toOSG(m_EngineOffset)); m_EngineSound->state()->setDirection(toOSG(m_ThrustDirection)); - CSPLOG(INFO, AUDIO) << "engine sound position " << m_EngineOffset; - CSPLOG(INFO, AUDIO) << "engine sound direction " << m_ThrustDirection; + CSPLOG(DEBUG, AUDIO) << "engine sound position " << m_EngineOffset; + CSPLOG(DEBUG, AUDIO) << "engine sound direction " << m_ThrustDirection; m_EngineSound->state()->apply(); m_EngineSound->play(); // TODO rpm dependence } } + CSPLOG(DEBUG, AUDIO) << "Engine::bindSounds exit"; } void Engine::updateThrust() { |