Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6769 for code


Ignore:
Timestamp:
Apr 22, 2010, 3:32:45 PM (15 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

Location:
code/branches/sound5/src/orxonox/sound
Files:
2 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);
  • code/branches/sound5/src/orxonox/sound/SoundStreamer.cc

    r6733 r6769  
    104104        }
    105105
    106         alSourcei(audioSource, AL_LOOPING, AL_TRUE);
     106        //alSourcei(audioSource, AL_LOOPING, AL_TRUE);
    107107
    108108        alSourcePlay(audioSource);
    109109        if(ALint error = alGetError())
    110             COUT(2) << "Sound: Could not start ambient sound" << std::endl;
     110            COUT(2) << "Sound: Could not start ambient sound" << getALErrorString(error) << std::endl;
    111111
    112112        while(true) // Stream forever, control through thread control
Note: See TracChangeset for help on using the changeset viewer.