Changeset 10351 in orxonox.OLD for trunk/src/world_entities/sound_entity.cc
- Timestamp:
- Jan 24, 2007, 7:44:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/sound_entity.cc
r10321 r10351 40 40 this->soundSource.setSourceNode(this); 41 41 42 if( root != NULL) 43 this->loadParams(root); 44 42 45 this->thunderBuffer = OrxSound::ResourceSoundBuffer("sounds/atmosphere/thunder.wav"); 43 46 } … … 50 53 { 51 54 } 55 56 57 /** 58 * loading stuff 59 * @param root xml element 60 */ 61 void SoundEntity::loadParams(const TiXmlElement* root) 62 { 63 LoadParam(root, "soundfile", this, SoundEntity, setSoundFile) 64 .describe("Sets the file of the sound source"); 65 66 LoadParam(root, "frequency", this, SoundEntity, setSoundFile) 67 .describe("Sets the file of the sound source"); 68 } 69 70 71 /** 72 * sets the sound file 73 * @param fileName name of the sound source 74 */ 75 void SoundEntity::setSoundFile(const std::string fileName) 76 { 77 this->soundBuffer = OrxSound::ResourceSoundBuffer(fileName); 78 } 79 52 80 53 81 void SoundEntity::activate()
Note: See TracChangeset
for help on using the changeset viewer.