Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 1, 2010, 6:43:54 PM (14 years ago)
Author:
rgrieder
Message:

Moved getALErrorString function from SoundManager.h to newly created SoundPrereqs.h file.
Also moved forward declarations to that file (from OrxonoxPrereqs.h).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound4/src/orxonox/sound/SoundStreamer.cc

    r6417 r6435  
    9191            alGetSourcei(audioSource, AL_BUFFERS_PROCESSED, &processed);
    9292            if (ALint error = alGetError())
    93             COUT(2) << "Sound Warning: Couldn't get number of processed buffers: "
    94                     << SoundManager::getALErrorString(error) << std::endl;
     93            COUT(2) << "Sound Warning: Couldn't get number of processed buffers: " << getALErrorString(error) << std::endl;
    9594
    9695            if(processed > 0)
     
    9998                alSourceUnqueueBuffers(audioSource, processed, buffers);
    10099                if (ALint error = alGetError())
    101                     COUT(2) << "Sound Warning: Couldn't unqueue buffers: "
    102                     << SoundManager::getALErrorString(error) << std::endl;
     100                    COUT(2) << "Sound Warning: Couldn't unqueue buffers: " << getALErrorString(error) << std::endl;
    103101
    104102                for(int i = 0; i < processed; i++)
     
    121119                alSourceQueueBuffers(audioSource, processed, buffers);
    122120                if (ALint error = alGetError())
    123                     COUT(2) << "Sound Warning: Couldn't queue buffers: "
    124                     << SoundManager::getALErrorString(error) << std::endl;
     121                    COUT(2) << "Sound Warning: Couldn't queue buffers: " << getALErrorString(error) << std::endl;
    125122            }
    126123        }
Note: See TracChangeset for help on using the changeset viewer.