Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 15, 2009, 10:36:45 PM (14 years ago)
Author:
rgrieder
Message:

Improved synchronisability of the sound classes (not yet Synchronisable though!).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound3/src/orxonox/sound/SoundManager.cc

    r6069 r6071  
    4040#include "core/GameMode.h"
    4141#include "core/ScopedSingletonManager.h"
    42 #include "core/Resource.h"
    4342#include "core/ConfigValueIncludes.h"
    4443#include "BaseSound.h"
    45 #include "MoodManager.h"
    4644#include "AmbientSound.h"
    4745
     
    223221    }
    224222
    225     //! Get the current mood and return the full path string to the requested sound.
    226     std::string SoundManager::getAmbientPath(const std::string& source)
    227     {
    228         std::string path = "ambient/" + MoodManager::getInstance().getMood() + "/" + source;
    229         shared_ptr<ResourceInfo> fileInfo = Resource::getInfo(path);
    230         if (fileInfo == NULL)
    231         {
    232             return "";
    233         }
    234         return path;
    235     }
    236 
    237223    void SoundManager::fadeIn(AmbientSound* sound)
    238224    {
Note: See TracChangeset for help on using the changeset viewer.