Changeset 715 for code/branches/FICN/src/audio/AudioStream.cc
- Timestamp:
- Dec 28, 2007, 11:33:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/audio/AudioStream.cc
r712 r715 26 26 */ 27 27 28 #include <string> 28 29 29 30 #include "AudioStream.h" 30 #include "misc/String.h"31 31 #include "../orxonox/core/Debug.h" 32 32 33 33 namespace audio 34 34 { 35 AudioStream::AudioStream( orxonox::String path)35 AudioStream::AudioStream(std::string path) 36 36 { 37 37 this->path = path; … … 255 255 256 256 257 orxonox::String AudioStream::errorString(int code)257 std::string AudioStream::errorString(int code) 258 258 { 259 259 switch(code) 260 260 { 261 261 case OV_EREAD: 262 return orxonox::String("Read from media.");262 return std::string("Read from media."); 263 263 case OV_ENOTVORBIS: 264 return orxonox::String("Not Vorbis data.");264 return std::string("Not Vorbis data."); 265 265 case OV_EVERSION: 266 return orxonox::String("Vorbis version mismatch.");266 return std::string("Vorbis version mismatch."); 267 267 case OV_EBADHEADER: 268 return orxonox::String("Invalid Vorbis header.");268 return std::string("Invalid Vorbis header."); 269 269 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."); 271 271 default: 272 return orxonox::String("Unknown Ogg error.");272 return std::string("Unknown Ogg error."); 273 273 } 274 274 }
Note: See TracChangeset
for help on using the changeset viewer.