Changeset 6502 for code/trunk/src/orxonox/sound/BaseSound.cc
- Timestamp:
- Mar 11, 2010, 11:34:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/sound/BaseSound.cc
r6417 r6502 178 178 void BaseSound::setPitch(float pitch) 179 179 { 180 if (pitch > 2 || pitch < 0.5 )180 if (pitch > 2 || pitch < 0.5f) 181 181 { 182 182 COUT(2) << "Sound warning: pitch out of range, cropping value." << std::endl; 183 pitch = pitch > 2 ? 2: pitch;184 pitch = pitch < 0.5 ? 0.5: pitch;183 pitch = pitch > 2.0f ? 2.0f : pitch; 184 pitch = pitch < 0.5f ? 0.5f : pitch; 185 185 } 186 186 this->pitch_ = pitch;
Note: See TracChangeset
for help on using the changeset viewer.