- Timestamp:
- Dec 9, 2009, 10:09:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/WorldSound.cc
r6269 r6307 36 36 #include "core/XMLPort.h" 37 37 #include "SoundManager.h" 38 #include <core/ConsoleCommandCompilation.h> 38 39 39 40 namespace orxonox … … 47 48 // WorldSound buffers should be pooled when they're not used anymore 48 49 this->bPooling_ = true; 50 this->registerVariables(); 49 51 } 50 52 51 53 WorldSound::~WorldSound() 52 54 { 55 } 56 57 void WorldSound::registerVariables() 58 { 59 registerVariable(volume_, ObjectDirection::ToClient, new NetworkCallback<BaseSound>(static_cast<BaseSound*>(this), &BaseSound::volumeChanged)); 60 registerVariable(source_, ObjectDirection::ToClient, new NetworkCallback<BaseSound>(static_cast<BaseSound*>(this), &BaseSound::sourceChanged)); 61 registerVariable(bLooping_, ObjectDirection::ToClient, new NetworkCallback<BaseSound>(static_cast<BaseSound*>(this), &BaseSound::loopingChanged)); 62 registerVariable((int&)(BaseSound::state_), ObjectDirection::ToClient); 63 registerVariable(pitch_, ObjectDirection::ToClient, new NetworkCallback<BaseSound>(static_cast<BaseSound*>(this), &BaseSound::pitchChanged)); 53 64 } 54 65
Note: See TracChangeset
for help on using the changeset viewer.