Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7318 in orxonox.OLD for trunk/src/lib/sound/sound_source.cc


Ignore:
Timestamp:
Apr 17, 2006, 2:55:51 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: SoundSource in the Menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/sound_source.cc

    r7317 r7318  
    117117void SoundSource::play()
    118118{
    119   if (this->retrieveSource())
    120   {
    121     alSourcePlay(this->sourceID);
     119  if (this->buffer && this->retrieveSource())
     120  {
     121    if (this->bPlay)
     122      alSourceStop(this->sourceID);
     123    alSourcei (this->sourceID, AL_BUFFER, this->buffer->getID());
     124      alSourcePlay(this->sourceID);
     125
    122126    if (DEBUG >= 3)
    123127      SoundEngine::checkError("Play Source", __LINE__);
Note: See TracChangeset for help on using the changeset viewer.