Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 8, 2009, 10:15:04 AM (15 years ago)
Author:
rgrieder
Message:
  • alProcessContext isn't necessary after all: the operation is even allowed to result in NOP.
  • Adjusted distance model in BaseSound so you can hear the sounds better.
Location:
code/branches/presentation2/src/orxonox/sound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/BaseSound.cc

    r6270 r6271  
    5757            if (!alIsSource(this->audioSource_))
    5858                COUT(1) << "Sound: Source generation failed: " << SoundManager::getALErrorString(alGetError()) << std::endl;
     59
     60            if (alIsSource(this->audioSource_))
     61            {
     62                alSourcei(this->audioSource_, AL_REFERENCE_DISTANCE, 20);
     63                alSourcei(this->audioSource_, AL_MAX_DISTANCE, 300);
     64            }
    5965        }
    6066    }
  • code/branches/presentation2/src/orxonox/sound/SoundManager.cc

    r6270 r6271  
    154154    {
    155155        this->processCrossFading(time.getDeltaTime());
    156         alcProcessContext(this->context_);
    157156    }
    158157
Note: See TracChangeset for help on using the changeset viewer.