Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2010, 3:16:12 PM (14 years ago)
Author:
scheusso
Message:

merged sound4 into sound5

Location:
code/branches/sound5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound5

  • code/branches/sound5/src/orxonox/sound/SoundStreamer.cc

    r6417 r6506  
    3030#include <vorbis/vorbisfile.h>
    3131#include "SoundManager.h"
     32#include "util/Sleep.h"
    3233
    3334namespace orxonox
     
    9192            alGetSourcei(audioSource, AL_BUFFERS_PROCESSED, &processed);
    9293            if (ALint error = alGetError())
    93             COUT(2) << "Sound Warning: Couldn't get number of processed buffers: "
    94                     << SoundManager::getALErrorString(error) << std::endl;
     94            COUT(2) << "Sound Warning: Couldn't get number of processed buffers: " << getALErrorString(error) << std::endl;
    9595
    9696            if(processed > 0)
     
    9999                alSourceUnqueueBuffers(audioSource, processed, buffers);
    100100                if (ALint error = alGetError())
    101                     COUT(2) << "Sound Warning: Couldn't unqueue buffers: "
    102                     << SoundManager::getALErrorString(error) << std::endl;
     101                    COUT(2) << "Sound Warning: Couldn't unqueue buffers: " << getALErrorString(error) << std::endl;
    103102
    104103                for(int i = 0; i < processed; i++)
     
    121120                alSourceQueueBuffers(audioSource, processed, buffers);
    122121                if (ALint error = alGetError())
    123                     COUT(2) << "Sound Warning: Couldn't queue buffers: "
    124                     << SoundManager::getALErrorString(error) << std::endl;
     122                    COUT(2) << "Sound Warning: Couldn't queue buffers: " << getALErrorString(error) << std::endl;
    125123            }
     124            msleep(250); // perhaps another value here is better
    126125        }
    127126    }
Note: See TracChangeset for help on using the changeset viewer.