Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2007, 3:20:46 AM (16 years ago)
Author:
landauf
Message:
  • changed output from std::cout to COUT(level)
  • added SoftDebugLevel config-variable (its a hack, but it works fine)
Location:
code/branches/FICN/src/audio
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/audio/AudioManager.cc

    r513 r560  
    2727
    2828#include "AudioManager.h"
    29 
    30 
     29#include "../orxonox/core/Debug.h"
    3130
    3231namespace audio
     
    6160                        else
    6261                        {
    63                                 std::cout << "Started playing background sound"<<std::endl;
     62                                COUT(3) << "Info: Started playing background sound" << std::endl;
    6463                        }
    6564                }
     
    6968        void AudioManager::ambientStop()
    7069        {
    71                 std::cout << "Stopped playing background sound"<<std::endl;
     70                COUT(3) << "Info: Stopped playing background sound" << std::endl;
    7271        }
    7372
     
    8079                {
    8180                        bgSounds.push_back(tmp);
    82                         std::cout << "Added background sound "<<file<<std::endl;
     81                        COUT(3) << "Info: Added background sound " << file << std::endl;
    8382                }
    8483        }
     
    118117                                        }
    119118                                        bgSounds[currentBgSound].playback();
    120                                         std::cout << "Playing next background sound "<<std::endl;
     119                                        COUT(3) << "Info: Playing next background sound" << std::endl;
    121120                                }
    122121                        }
  • code/branches/FICN/src/audio/AudioStream.cc

    r513 r560  
    2828
    2929#include "AudioStream.h"
     30#include "../orxonox/core/Debug.h"
    3031
    3132namespace audio
     
    103104                if (loaded)
    104105                {
    105             std::cout
     106            COUT(3)
    106107                << "version         " << vorbisInfo->version         << "\n"
    107108                << "channels        " << vorbisInfo->channels        << "\n"
     
    115116
    116117            for(int i = 0; i < vorbisComment->comments; i++)
    117                 std::cout << "   " << vorbisComment->user_comments[i] << "\n";
    118 
    119             std::cout << std::endl;
     118                COUT(3) << "   " << vorbisComment->user_comments[i] << "\n";
     119
     120            COUT(3) << std::endl;
    120121                }
    121122        }
  • code/branches/FICN/src/audio/_AudioObject.cc

    r513 r560  
    3030#include <string>
    3131#include "AudioObject.h"
     32#include "../orxonox/core/Debug.h"
    3233
    3334namespace audio
     
    7475
    7576                SetListenerValues();
    76                 std::cout << "Play sone ambient background sound";
     77                COUT(3) << "Info: Play sone ambient background sound";
    7778        }
    7879
Note: See TracChangeset for help on using the changeset viewer.