- Timestamp:
- Dec 19, 2009, 12:18:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/WorldSound.cc
r6372 r6382 51 51 this->registerVariables(); 52 52 } 53 54 WorldSound::~WorldSound()55 {56 }57 53 58 54 void WorldSound::registerVariables() 59 55 { 60 registerVariable(volume_, ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::volumeChanged));61 registerVariable(source_, ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::sourceChanged));56 registerVariable(volume_, ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::volumeChanged)); 57 registerVariable(source_, ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::sourceChanged)); 62 58 registerVariable(bLooping_, ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::loopingChanged)); 59 registerVariable(pitch_, ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::pitchChanged)); 63 60 registerVariable((int&)(BaseSound::state_), ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::stateChanged)); 64 registerVariable(pitch_, ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::pitchChanged));65 61 } 66 62 … … 125 121 float WorldSound::getRealVolume() 126 122 { 123 assert(GameMode::playsSound()); 127 124 return SoundManager::getInstance().getRealVolume(SoundType::Effects); 128 125 }
Note: See TracChangeset
for help on using the changeset viewer.