Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2007, 11:33:10 PM (16 years ago)
Author:
rgrieder
Message:
  • the master has spoken…
  • misc/String.h is not anymore..
Location:
code/branches/FICN/src/audio
Files:
7 edited

Legend:

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

    r708 r715  
    3030namespace audio
    3131{
    32         AudioBuffer::AudioBuffer(orxonox::String fileName)
     32        AudioBuffer::AudioBuffer(std::string fileName)
    3333        {
    3434                // Load wav data into buffers.
  • code/branches/FICN/src/audio/AudioBuffer.h

    r708 r715  
    99        {
    1010        public:
    11                 AudioBuffer(orxonox::String fileName);
     11                AudioBuffer(std::string fileName);
    1212                ~AudioBuffer();
    1313        private:
     
    1515                ALuint buffer;
    1616                // Identifier
    17                 orxonox::String name;
     17                std::string name;
    1818                // True if AL was able to load data
    1919                ALboolean loaded;
  • code/branches/FICN/src/audio/AudioIncludes.h

    r708 r715  
    11#include <iostream>
    22#include <vector>
     3#include <string>
    34
    45#include <AL/al.h>
     
    1112
    1213#include "orxonox/core/Error.h"
    13 #include "misc/String.h"
  • code/branches/FICN/src/audio/AudioManager.cc

    r708 r715  
    7272        }
    7373
    74         void AudioManager::ambientAdd(orxonox::String file)
     74        void AudioManager::ambientAdd(std::string file)
    7575        {
    76     orxonox::String path = ambientPath + "/" + file + ".ogg";
     76    std::string path = ambientPath + "/" + file + ".ogg";
    7777                AudioStream tmp(path);
    7878                tmp.open();
  • code/branches/FICN/src/audio/AudioManager.h

    r708 r715  
    3737                void update();
    3838
    39                 void ambientAdd(orxonox::String file);
     39                void ambientAdd(std::string file);
    4040                void ambientStart();
    4141                void ambientStop();
     
    4949
    5050
    51                 orxonox::String ambientPath;
     51                std::string ambientPath;
    5252       
    5353                // Vector containing all audio files
  • code/branches/FICN/src/audio/AudioStream.cc

    r712 r715  
    2626 */
    2727
     28#include <string>
    2829
    2930#include "AudioStream.h"
    30 #include "misc/String.h"
    3131#include "../orxonox/core/Debug.h"
    3232
    3333namespace audio
    3434{
    35   AudioStream::AudioStream(orxonox::String path)
     35  AudioStream::AudioStream(std::string path)
    3636        {
    3737                this->path = path;
     
    255255
    256256
    257         orxonox::String AudioStream::errorString(int code)
     257        std::string AudioStream::errorString(int code)
    258258        {
    259259            switch(code)
    260260            {
    261261                case OV_EREAD:
    262                     return orxonox::String("Read from media.");
     262                    return std::string("Read from media.");
    263263                case OV_ENOTVORBIS:
    264                     return orxonox::String("Not Vorbis data.");
     264                    return std::string("Not Vorbis data.");
    265265                case OV_EVERSION:
    266                     return orxonox::String("Vorbis version mismatch.");
     266                    return std::string("Vorbis version mismatch.");
    267267                case OV_EBADHEADER:
    268                     return orxonox::String("Invalid Vorbis header.");
     268                    return std::string("Invalid Vorbis header.");
    269269                case OV_EFAULT:
    270                     return orxonox::String("Internal logic fault (bug or heap/stack corruption.");
     270                    return std::string("Internal logic fault (bug or heap/stack corruption.");
    271271                default:
    272                     return orxonox::String("Unknown Ogg error.");
     272                    return std::string("Unknown Ogg error.");
    273273            }
    274274        }
  • code/branches/FICN/src/audio/AudioStream.h

    r708 r715  
    1111  {
    1212    public:
    13       AudioStream(orxonox::String path);
     13      AudioStream(std::string path);
    1414      void open();
    1515      void release();
     
    2424      void empty();
    2525      void check();
    26       orxonox::String errorString(int code);
     26      std::string errorString(int code);
    2727
    2828    private:
    29       orxonox::String path;
     29      std::string path;
    3030
    3131      FILE*           oggFile;
Note: See TracChangeset for help on using the changeset viewer.