diff options
author | Jacek Antonelli | 2009-02-15 19:58:57 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-02-15 20:06:17 -0600 |
commit | 7552080406d6c54e981d2e26f3826e7457cdd5fb (patch) | |
tree | e613b774b600367635484fd71770c7984e720576 /linden/indra/newview/llviewerobject.cpp | |
parent | Updated release notes for 1.1.0 RC1. (diff) | |
parent | Merge branch '1.1.0-RC1-fixes' into next (diff) | |
download | meta-impy-7552080406d6c54e981d2e26f3826e7457cdd5fb.zip meta-impy-7552080406d6c54e981d2e26f3826e7457cdd5fb.tar.gz meta-impy-7552080406d6c54e981d2e26f3826e7457cdd5fb.tar.bz2 meta-impy-7552080406d6c54e981d2e26f3826e7457cdd5fb.tar.xz |
Merge commit 'mccabe/next' into next
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerobject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewerobject.cpp b/linden/indra/newview/llviewerobject.cpp index c560ced..cb3afc5 100644 --- a/linden/indra/newview/llviewerobject.cpp +++ b/linden/indra/newview/llviewerobject.cpp | |||
@@ -2766,7 +2766,7 @@ BOOL LLViewerObject::updateLOD() | |||
2766 | // Update volume of looping sounds | 2766 | // Update volume of looping sounds |
2767 | if (mAudioSourcep && mAudioSourcep->isLoop()) | 2767 | if (mAudioSourcep && mAudioSourcep->isLoop()) |
2768 | { | 2768 | { |
2769 | F32 volume = gSavedSettings.getBOOL("MuteSounds") ? 0.f : (mAudioGain * gSavedSettings.getF32("AudioLevelSFX")); | 2769 | F32 volume = mAudioGain * gSavedSettings.getF32("AudioLevelSFX"); |
2770 | mAudioSourcep->setGain(volume); | 2770 | mAudioSourcep->setGain(volume); |
2771 | } | 2771 | } |
2772 | return FALSE; | 2772 | return FALSE; |
@@ -4331,7 +4331,7 @@ void LLViewerObject::setAttachedSound(const LLUUID &audio_uuid, const LLUUID& ow | |||
4331 | { | 4331 | { |
4332 | BOOL queue = flags & LL_SOUND_FLAG_QUEUE; | 4332 | BOOL queue = flags & LL_SOUND_FLAG_QUEUE; |
4333 | mAudioGain = gain; | 4333 | mAudioGain = gain; |
4334 | F32 volume = gSavedSettings.getBOOL("MuteSounds") ? 0.f : gain * gSavedSettings.getF32("AudioLevelSFX"); | 4334 | F32 volume = gain * gSavedSettings.getF32("AudioLevelSFX"); |
4335 | mAudioSourcep->setGain(volume); | 4335 | mAudioSourcep->setGain(volume); |
4336 | mAudioSourcep->setLoop(flags & LL_SOUND_FLAG_LOOP); | 4336 | mAudioSourcep->setLoop(flags & LL_SOUND_FLAG_LOOP); |
4337 | mAudioSourcep->setSyncMaster(flags & LL_SOUND_FLAG_SYNC_MASTER); | 4337 | mAudioSourcep->setSyncMaster(flags & LL_SOUND_FLAG_SYNC_MASTER); |
@@ -4370,7 +4370,7 @@ void LLViewerObject::adjustAudioGain(const F32 gain) | |||
4370 | if (mAudioSourcep) | 4370 | if (mAudioSourcep) |
4371 | { | 4371 | { |
4372 | mAudioGain = gain; | 4372 | mAudioGain = gain; |
4373 | F32 volume = gSavedSettings.getBOOL("MuteSounds") ? 0.f : mAudioGain * gSavedSettings.getF32("AudioLevelSFX"); | 4373 | F32 volume = mAudioGain * gSavedSettings.getF32("AudioLevelSFX"); |
4374 | mAudioSourcep->setGain(volume); | 4374 | mAudioSourcep->setGain(volume); |
4375 | } | 4375 | } |
4376 | } | 4376 | } |