Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7290 in orxonox.OLD for trunk


Ignore:
Timestamp:
Apr 14, 2006, 9:58:17 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more debug

Location:
trunk/src
Files:
5 edited

Legend:

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

    r7287 r7290  
    4949OggPlayer::~OggPlayer()
    5050{
    51   //this->release();
     51  this->release();
    5252}
    5353
  • trunk/src/lib/sound/sound_buffer.cc

    r7221 r7290  
    4747  //  SoundEngine::getInstance()->removeBuffer(this);
    4848  alDeleteBuffers(1, &this->bufferID);
     49  SoundEngine::checkError("SoundBuffer: Delete Buffer", __LINE__);
    4950}
    5051
  • trunk/src/lib/sound/sound_engine.cc

    r7285 r7290  
    7070  {
    7171    while (this->sourceList->size() > 0)
    72       delete dynamic_cast<SoundSource*>(this->sourceList->front());
     72      delete static_cast<SoundSource*>(this->sourceList->front());
    7373  }
    7474
     
    7676  {
    7777    alDeleteSources(1, &this->ALSources.top());
     78    SoundEngine::checkError("Deleting Source", __LINE__);
    7879    this->ALSources.pop();
    7980  }
     
    8384  {
    8485    while(this->bufferList->size() > 0)
    85       ResourceManager::getInstance()->unload(dynamic_cast<SoundBuffer*>(this->bufferList->front()));
     86      ResourceManager::getInstance()->unload(static_cast<SoundBuffer*>(this->bufferList->front()));
    8687  }
    8788
     
    146147    this->ALSources.pop();
    147148  }
    148 
    149149}
    150150
     
    155155void SoundEngine::update()
    156156{
    157 
    158157  // updating the Listeners Position
    159158  if (likely(this->listener != NULL))
     
    199198                       source->getNode()->getVelocity().z);
    200199          }
    201 
    202200        }
    203201        else
     
    208206    }
    209207  }
     208  SoundEngine::checkError("SoundEngine::update()", __LINE__);
    210209}
    211210
     
    309308  // #endif
    310309
    311   printf ("===== SOURCECOUNT: %d\n", this->maxSourceCount);
    312310  this->setDopplerValues(SOUND_DOPPLER_FACTOR, SOUND_DOPPLER_VELOCITY);
    313311  this->allocateSources(this->maxSourceCount);
     312  this->checkError("Allocating Sources", __LINE__);
    314313}
    315314
     
    422421  };
    423422}
    424 
  • trunk/src/lib/sound/sound_source.cc

    r7288 r7290  
    5757    SoundEngine::getInstance()->popALSource(this->sourceID);
    5858  alSourcePlay(this->sourceID);
     59  if (DEBUG >= 3)
     60    SoundEngine::checkError("Play Source", __LINE__);
    5961  this->bPlay = true;
    6062}
     
    7779    alSourcei (this->sourceID, AL_BUFFER, this->buffer->getID());
    7880  this->bPlay = true;
     81
     82  if (DEBUG >= 3)
     83    SoundEngine::checkError("Play Source", __LINE__);
    7984}
    8085
     
    95100{
    96101  alSourcePause(this->sourceID);
     102  if (DEBUG >= 3)
     103    SoundEngine::checkError("Pause Source", __LINE__);
    97104}
    98105
     
    103110{
    104111  alSourceRewind(this->sourceID);
     112
     113  if (DEBUG >= 3)
     114    SoundEngine::checkError("Rewind Source", __LINE__);
    105115}
    106116
     
    114124{
    115125  alSourcef(this->sourceID, AL_ROLLOFF_FACTOR, rolloffFactor);
     126
     127  if (DEBUG >= 3)
     128    SoundEngine::checkError("Set Source Rolloff-factor", __LINE__);
    116129}
    117130
  • trunk/src/story_entities/game_world.cc

    r7289 r7290  
    136136int GameWorld::createAudioThread(void* gameWorld)
    137137{
    138   GameWorld* gw = (GameWorld*)gameWorld;
     138/*  GameWorld* gw = (GameWorld*)gameWorld;
    139139  printf("STARTIG AUDIO THREAD\n");
    140140  if(gw->dataTank && gw->dataTank->music != NULL)
     
    145145    if(gw->dataTank && gw->dataTank->music != NULL)
    146146      gw->dataTank->music->update();
    147     SDL_Delay(5);
    148   }
     147    SDL_Delay(1);
     148  }*/
    149149  printf("End the AudioThread\n");
    150150}
Note: See TracChangeset for help on using the changeset viewer.