Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 22, 2010, 3:32:45 PM (14 years ago)
Author:
erwin
Message:

Fixed a possible source for future problems. but still no sounds. Try everything in one thread with the same result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound5/src/orxonox/sound/AmbientSound.cc

    r6767 r6769  
    155155        }
    156156
    157         this->audioSource_ = SoundManager::getInstance().getSoundSource(this);
     157        if(!alIsSource(this->audioSource_))
     158            this->audioSource_ = SoundManager::getInstance().getSoundSource(this);
     159
    158160        if (this->source_ == source)
    159161        {
     
    183185        if(this->soundstreamthread_ == boost::thread())
    184186            COUT(2) << "Sound: Failed to create thread." << std::endl;
    185        
     187        //SoundStreamer streamer;
     188        //streamer(this->audioSource_, dataStream);
     189
    186190        alSource3f(this->audioSource_, AL_POSITION,  0, 0, 0);
    187191        alSource3f(this->audioSource_, AL_VELOCITY,  0, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.